-
Notifications
You must be signed in to change notification settings - Fork 5k
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
No receipt after contract deploy #2601
Comments
In addition: With |
You have to configure your module correctly for the development environment. I've updated and improved the transaction confirmation workflow in this release. |
Thank's for the quick reply. You mean this
Are this values not calculated and set by metamask if you do a transaction? This is what they do for you, right? If not, can I just use this default values then? |
Yes @nivida. This issue is same as the issue #2577. Please check the . |
I changed my code to this below, but still don't get a receipt.
|
+1 After updating to
|
Most likely related, |
Same here. Here is a failing test to demonstrate the issue with |
not sure if it's related but it seems not to resolve nor reject on VM error either (running on |
update: I tried it today with |
@hbrs Thanks for answering here!:) Did you configure the transaction confirmation workflow as documented in our documentation? What kind of node are you using and which provider? |
I tried with beta 55 and web3.eth.sendTransaction() is still not resolving and no receipt. I'm using Infura websocketprovider |
@nivida @JonahGroendal I can confirm that in beta 55 this issue is fixed when setting the options defined above, but I would kindly want to ask for additional information on the docs:
|
Also, another issue I have is with the synchrony between the Is this related or should I open a new issue? |
@PaulRBerg It's working for me now after initializing like this: |
Default value of transactionConfirmationBlocks is 24 by default: https://github.com/ethereum/web3.js/blob/5683436b1dae70fce72a2ff952736e687998fd7f/packages/web3-core/src/AbstractWeb3Module.js#L53 You might want to just wait or lower it. For those on local dev chains you want transactionConfirmationBlocks = 1 because blocks are not created after the one including the TX, so the receipt is never fired. |
Description
After deploying a new contract I never receive a
receipt
object.Expected behavior
Receiving a contract object containing the address of the new contract in
.on ('receipt', ...
.Actual behavior
Nothing happens (also no
error
).On my node I can look up the contract address manually.
The contract gets created.
Versions
1.0.0-beta.51 (latest)
6.3.0 (latest)
Chromium
instance: Geth/v1.8.23-stable-c9427004/linux-amd64/go1.11.5
The text was updated successfully, but these errors were encountered: