Skip to content

Commit

Permalink
parsing gas price
Browse files Browse the repository at this point in the history
  • Loading branch information
SDargarh committed Nov 30, 2023
1 parent dfcf8ea commit 33296a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ class KeyringController extends EventEmitter {
const { from, to, value, data } = bscTx
const gasLimit = await web3.eth.estimateGas({ to, from, value, data })
const gasPrice = await web3.eth.getGasPrice();
return { gasLimit: gasLimit, gasPrice: gasPrice}
return { gasLimit: gasLimit, gasPrice: parseInt(gasPrice)}
}
}

Expand Down

0 comments on commit 33296a9

Please sign in to comment.