We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've got the error when I specify gasPrice:0 in raw tx object to be signed by web3.eth.accounts.signTransaction(). Example code snippet:
gasPrice:0
web3.eth.accounts.signTransaction()
let tx = { ... gasPrice: 0, // it is OK in JP Quorum blockchain ... } let signedTx = await web3.eth.accounts.signTransaction(tx, privateKey);
Signed tx object insignedTx variable.
signedTx
TypeError: this.getGasPrice is not a function at Proxy._callee
Also it may be worthwhile to change the condition for checking the tx.gasPrice:
tx.gasPrice
// web3.js/packages/web3-eth-accounts/src/Accounts.js:128 if (!tx.gasPrice) { tx.gasPrice = await this.getGasPrice(); }
The condition is true if ts.gasPrice directly specified by user as 0. May be somthing like:
ts.gasPrice
if ((typeof tx.gasPrice == "undefined") || (tx.gasPrice < 0)) { tx.gasPrice = await this.getGasPrice(); }
The text was updated successfully, but these errors were encountered:
This got already fixed and will be released this week. PR: #2566
Sorry, something went wrong.
Sorry, didn't saw the last example. Will fix it asap.
Thanks
No branches or pull requests
Description
I've got the error when I specify
gasPrice:0
in raw tx object to be signed byweb3.eth.accounts.signTransaction()
. Example code snippet:Expected behavior
Signed tx object in
signedTx
variable.Actual behavior
Also it may be worthwhile to change the condition for checking the
tx.gasPrice
:The condition is true if
ts.gasPrice
directly specified by user as 0. May be somthing like:Versions
The text was updated successfully, but these errors were encountered: