-
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
Sending eth to contract fallback fails with default gas #7115
Comments
+1 |
@danfinlay const bytecode = await web3.eth.getCode('REGULAR_ADDRESS')
console.log(bytecode) // returns 0x for regular accounts or always try to call |
Yeah that's what I thought we did, so this is definitely a bug in the meanwhile. Avoiding |
Oh man, this bug is so bad now blog posts are talking about how to educate users around it. We need this fixed soon. This must have been introduced recently, there's no way this has been sitting around. |
Here’s the line that claims to be doing this. Does look like a regression. |
It seems that issues is back in version 7.7.4 |
MetaMask is setting the gas limit of 21000 by default for eth sends even if it's to a contract which will always fail. An improvement would be to add additional gas padding if the the receiving address is a contract.
Example failed tx
The text was updated successfully, but these errors were encountered: