Skip to content

Commit

Permalink
Fix gasPrice bug (#6271)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Oct 7, 2023
1 parent 0ccf190 commit 948683a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/identity-service/src/relay/ethTxRelay.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ const createAndSendEthTransaction = async (
`L1 txRelay - Invalid relayerPublicKey found. Expected ${sender.publicKey.toLowerCase()}, found ${address}`
)
}
const gasPrice = await web3.eth.gasPrice()
const gasPrice = await web3.eth.getGasPrice()
const nonce = await web3.eth.getTransactionCount(address)
let txParams = {
nonce: web3.utils.toHex(nonce),
gasLimit: gasLimit ? web3.utils.numberToHex(gasLimit) : DEFAULT_GAS_LIMIT,
gasPrice,
gasPrice: web3.utils.numberToHex(gasPrice),
to: receiverAddress,
value: web3.utils.toHex(value)
}
Expand Down

0 comments on commit 948683a

Please sign in to comment.