From a4e44dbe05347197ba367f967aa99078814a80fc Mon Sep 17 00:00:00 2001 From: Tanya S <120410716+stubbsta@users.noreply.github.com> Date: Tue, 6 Jan 2026 11:35:16 +0200 Subject: [PATCH] chore: Update anvil config (#3662) * Use anvil config disable-min-priority-fee to prevent gas price doubling * remove gas limit set in utils->deployContract --- tests/waku_rln_relay/utils.nim | 1 - tests/waku_rln_relay/utils_onchain.nim | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/waku_rln_relay/utils.nim b/tests/waku_rln_relay/utils.nim index a4247ab44..8aed18f9b 100644 --- a/tests/waku_rln_relay/utils.nim +++ b/tests/waku_rln_relay/utils.nim @@ -24,7 +24,6 @@ proc deployContract*( tr.`from` = Opt.some(web3.defaultAccount) let sData = code & contractInput tr.data = Opt.some(hexToSeqByte(sData)) - tr.gas = Opt.some(Quantity(3000000000000)) if gasPrice != 0: tr.gasPrice = Opt.some(gasPrice.Quantity) diff --git a/tests/waku_rln_relay/utils_onchain.nim b/tests/waku_rln_relay/utils_onchain.nim index d8bb13a62..9f1048097 100644 --- a/tests/waku_rln_relay/utils_onchain.nim +++ b/tests/waku_rln_relay/utils_onchain.nim @@ -529,6 +529,7 @@ proc runAnvil*( # --chain-id Chain ID of the network. # --load-state Initialize the chain from a previously saved state snapshot (read-only) # --dump-state Dump the state on exit to the given file (write-only) + # Values used are representative of Linea Sepolia testnet # See anvil documentation https://book.getfoundry.sh/reference/anvil/ for more details try: let anvilPath = getAnvilPath() @@ -539,11 +540,16 @@ proc runAnvil*( "--port", $port, "--gas-limit", - "300000000000000", + "30000000", + "--gas-price", + "7", + "--base-fee", + "7", "--balance", - "1000000000", + "10000000000", "--chain-id", $chainId, + "--disable-min-priority-fee", ] # Add state file argument if provided