Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork/ethers v5 target #252

Merged
merged 76 commits into from
Aug 3, 2020
Merged

Fork/ethers v5 target #252

merged 76 commits into from
Aug 3, 2020

Conversation

krzkaczor
Copy link
Member

@krzkaczor krzkaczor commented Jun 30, 2020

Published as @typechain/ethers-v5

const abstractFactoryFiles = Object.keys(this.contractCache).map((contractName) => {
const { contract, abi } = this.contractCache[contractName]
return {
path: join(this.outDirAbs, `${contract.name}Contract.ts`),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@krzkaczor this looks invalid, the file should still be named ...Factory.ts, since it still exports class ${contract.name}Factory.
@zemse was that a mistake or did you change this intentionally?

Suggested change
path: join(this.outDirAbs, `${contract.name}Contract.ts`),
path: join(this.outDirAbs, `${contract.name}Factory.ts`),

(after the change we'll need to re-generate the files in packages/target-ethers-v5-test/types/ since they include the invalid filename)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're correct, there's a mistake here, this should be ${contract.name}Factory.ts. I'll create a PR to fix this.

@quezak
Copy link
Contributor

quezak commented Jul 31, 2020

BTW: I'm running the released "@typechain/ethers-v5": "^0.0.3", locally for a few days now and found no problems after patching the factory filenames. It even works correctly with Solidity 0.7.0 😃

@krzkaczor
Copy link
Member Author

I just published: @typechain/ethers-v5@0.0.4

@quezak yes, I think it's reasonable to publish it as stable this weekend 👍

@krzkaczor krzkaczor merged commit b0b2292 into master Aug 3, 2020
@krzkaczor krzkaczor deleted the fork/ethers-v5-target branch August 3, 2020 20:14
@krzkaczor
Copy link
Member Author

Finally, published as: @typechain/ethers-v5@1.0.0.

Thanks for everyone involved in this! Especially @zemse and @bradennapier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants