Closed mirek closed 6 years ago
Several people have been reporting issues with waitForTransaction
, but I have been unable to reproduce it so far. I will try out your example shortly, hopefully it will help narrow down the cause.
Based on your error, I wonder if it is related to the response from TestRPC. Does it fail against Ropsten too? No worries if you don't know, I'll experiment.
One other note though, you can compute the contract address using:
// sendResult is the transaction object returned from wallet.sendTransaction
var contractAddress = ethers.utils.getContractAddress(sendResult);
Thanks @ricmoo getting an address is great workaround for this. Of course it would be nice to have working waitForTransaction
.
Fixed in https://github.com/ethers-io/ethers.js/commit/5a837e1b0a5956d454c05a4c501039034557dd3b.
I will update this ticket once Travis CI is complete and the package has been published to npm.
This should be fixed now in ethers-providers 2.1.11. If you blow away package-lock.json
and 'node_modules/and do an
npm install` it should all be peachy now, in TestRPC.
I'm having problems with getting an address of deployed contract, is there something silly I'm doing here?