Skip to content

Commit

Permalink
Fixes calling toHexString on undefined gasPrice
Browse files Browse the repository at this point in the history
Fixes web3#4902
  • Loading branch information
drub0y committed Mar 29, 2022
1 parent d46d922 commit 6f82d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ Method.prototype._confirmTransaction = function (defer, result, payload) {
to: parsedTx.to,
from: parsedTx.from,
gas: parsedTx.gasLimit.toHexString(),
gasPrice: parsedTx.gasPrice.toHexString(),
gasPrice: parsedTx.gasPrice ? parsedTx.gasPrice.toHexString() : undefined,
value: parsedTx.value.toHexString()
});
}
Expand Down

0 comments on commit 6f82d32

Please sign in to comment.