Skip to content

Commit

Permalink
fix: increase gasprice calculated for nf3
Browse files Browse the repository at this point in the history
  • Loading branch information
Westlad committed Dec 7, 2021
1 parent c9cda1b commit 6e622e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/lib/nf3.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ class Nf3 {
// if we don't have a nonce, we must get one from the ethereum client
if (!this.nonce) this.nonce = await this.web3.eth.getTransactionCount(this.ethereumAddress);

let gasPrice = 10000000000;
let gasPrice = 20000000000;
const gas = (await this.web3.eth.getBlock('latest')).gasLimit;
const blockGasPrice = Number(await this.web3.eth.getGasPrice());
const blockGasPrice = 2 * Number(await this.web3.eth.getGasPrice());
if (blockGasPrice > gasPrice) gasPrice = blockGasPrice;

tx = {
Expand Down

0 comments on commit 6e622e3

Please sign in to comment.