-
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
Error: Transaction ran out of gas. Please provide more gas: #2441
Comments
I've tested your example code with geth v1.8.23 and the latest version of web3.js and it worked. Could you please provide further details and update your issue to be aligned with the issue template we provide here? |
I believe this is related to the issue I am getting, currently it is not correct the way TransactionReceiptValidator work, Following is the culprit
for example if you send a transaction that uses the exact amount of provided gas, it will throw an error. Meaning all regular transactions that uses |
I've updated the transaction receipt validation during the improvements of the transaction based methods. PR |
Hello,
We have provided enough gas for the transaction, but we got the error "Transaction ran out of gas. Please provide more gas:". The transaction has been successful and can not get the receipt.
Recently, we have updated the geth version to v1.8.23
I have used, web3.eth.sendTransaction method.
//
// using the event emitter
web3.eth.sendTransaction({
from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe',
to: '0x11f4d0A3c12e86B4b5F39B213F7E19D048276DAe',
value: '1000000000000000'
})
.on('transactionHash', function(hash){
...
})
.on('receipt', function(receipt){
...
})
.on('confirmation', function(confirmationNumber, receipt){ ... })
.on('error', console.error); // If a out of gas error, the second parameter is the receipt.
//
The text was updated successfully, but these errors were encountered: