Ethers.js: v5 ContractFactory.deploy() ignores transaction overrides

Created on 24 Apr 2020  路  5Comments  路  Source: ethers-io/ethers.js

In ethers-v5 a deployment transaction such as factory.deploy({ gasPrice, gasLimit }) ignores the transaction overrides. I think the problem is in resolveAddresses() called from here:
https://github.com/ethers-io/ethers.js/blob/db604aa6afc007f8198fc730b7db4f9ae3876c58/packages/contracts/src.ts/index.ts#L982-L983
https://github.com/ethers-io/ethers.js/blob/db604aa6afc007f8198fc730b7db4f9ae3876c58/packages/contracts/src.ts/index.ts#L84-L91
which maps on paramType = this.interface.deploy.inputs = [] and so returns nothing.

bug fixed

All 5 comments

I鈥檒l look into this shortly. Thanks!

I've reproduced it and am re-factoring a bit of that code now which should address this issue and clean things up a bit.

This should be fixed in 5.0.0-beta.183. Try it out and let me know. :)

It works!

Awesome! :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moshebeeri picture moshebeeri  路  3Comments

adamdossa picture adamdossa  路  3Comments

abhishekp1996 picture abhishekp1996  路  3Comments

PhABC picture PhABC  路  3Comments

dagogodboss picture dagogodboss  路  3Comments