We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcfb6e0 commit 4871d65Copy full SHA for 4871d65
1 file changed
src/utils/bridge_fee_juice.ts
@@ -57,7 +57,9 @@ export async function bridgeL1FeeJuice(
57
58
// Create a fresh L1 client so viem picks up the current on-chain nonce.
59
// The mint (or prior runs) may have incremented it beyond what the
60
- // original client has cached.
+ // original client has cached. Public RPC nodes may have eventual consistency,
61
+ // so wait briefly for the nonce to propagate.
62
+ await new Promise(resolve => setTimeout(resolve, 3_000));
63
const freshClient = createExtendedL1Client(chain.rpcUrls, key, chain.chainInfo);
64
const freshPortal = await L1FeeJuicePortalManager.new(node, freshClient, logger);
65
const claim = await freshPortal.bridgeTokensPublic(recipient, amount, false);
0 commit comments