Skip to content

Commit a4e44db

Browse files
authored
chore: Update anvil config (#3662)
* Use anvil config disable-min-priority-fee to prevent gas price doubling * remove gas limit set in utils->deployContract
1 parent a865ff7 commit a4e44db

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/waku_rln_relay/utils.nim

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ proc deployContract*(
2424
tr.`from` = Opt.some(web3.defaultAccount)
2525
let sData = code & contractInput
2626
tr.data = Opt.some(hexToSeqByte(sData))
27-
tr.gas = Opt.some(Quantity(3000000000000))
2827
if gasPrice != 0:
2928
tr.gasPrice = Opt.some(gasPrice.Quantity)
3029

tests/waku_rln_relay/utils_onchain.nim

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ proc runAnvil*(
529529
# --chain-id Chain ID of the network.
530530
# --load-state Initialize the chain from a previously saved state snapshot (read-only)
531531
# --dump-state Dump the state on exit to the given file (write-only)
532+
# Values used are representative of Linea Sepolia testnet
532533
# See anvil documentation https://book.getfoundry.sh/reference/anvil/ for more details
533534
try:
534535
let anvilPath = getAnvilPath()
@@ -539,11 +540,16 @@ proc runAnvil*(
539540
"--port",
540541
$port,
541542
"--gas-limit",
542-
"300000000000000",
543+
"30000000",
544+
"--gas-price",
545+
"7",
546+
"--base-fee",
547+
"7",
543548
"--balance",
544-
"1000000000",
549+
"10000000000",
545550
"--chain-id",
546551
$chainId,
552+
"--disable-min-priority-fee",
547553
]
548554

549555
# Add state file argument if provided

0 commit comments

Comments
 (0)