Skip to content

Commit 5cd0f57

Browse files
ampagentjxom
andcommitted
test: give the blob sendSync code 4 test mainnet's receipt timeout
Amp-Thread-ID: https://ampcode.com/threads/T-01a1bcdf-9dbd-751b-b64d-fd0750b4a174 Co-authored-by: jxom <jake@tempo.xyz>
1 parent 5832fdd commit 5cd0f57

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/core/actions/transaction/sendSync.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ describe('behavior: node stops waiting (error code 4)', () => {
873873

874874
test(
875875
'returns the receipt of a blob transaction',
876-
{ timeout: 60_000 },
876+
{ timeout: 90_000 },
877877
async () => {
878878
await setup()
879879
const node = await createNode(() => undefined)
@@ -882,6 +882,9 @@ describe('behavior: node stops waiting (error code 4)', () => {
882882
Actions.transaction.sendSync(node.client, {
883883
account: local,
884884
blobs: Blobs.from(Hex.fromString('hello world')),
885+
// Anvil verifies the blob proofs before pooling the transaction, so
886+
// use mainnet's longer receipt timeout (three block times).
887+
chain: mainnet,
885888
kzg,
886889
maxFeePerBlobGas: Value.fromGwei('30'),
887890
pollingInterval: 50,

0 commit comments

Comments
 (0)