File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { sendAndConfirmTransaction } from "../../transaction/actions/send-and-co
20
20
import { sendBatchTransaction } from "../../transaction/actions/send-batch-transaction.js" ;
21
21
import { waitForReceipt } from "../../transaction/actions/wait-for-tx-receipt.js" ;
22
22
import { isContractDeployed } from "../../utils/bytecode/is-contract-deployed.js" ;
23
+ import { sleep } from "../../utils/sleep.js" ;
23
24
import type { Account , Wallet } from "../interfaces/wallet.js" ;
24
25
import { generateAccount } from "../utils/generateAccount.js" ;
25
26
import { smartWallet } from "./smart-wallet.js" ;
@@ -332,15 +333,17 @@ describe.runIf(process.env.TW_SECRET_KEY).sequential(
332
333
} ) ,
333
334
account : newSmartAccount ,
334
335
} ) ,
335
- sendAndConfirmTransaction ( {
336
- transaction : claimTo ( {
337
- contract,
338
- quantity : 1n ,
339
- to : newSmartAccount . address ,
340
- tokenId : 0n ,
336
+ sleep ( 1000 ) . then ( ( ) =>
337
+ sendAndConfirmTransaction ( {
338
+ transaction : claimTo ( {
339
+ contract,
340
+ quantity : 1n ,
341
+ to : newSmartAccount . address ,
342
+ tokenId : 0n ,
343
+ } ) ,
344
+ account : newSmartAccount ,
341
345
} ) ,
342
- account : newSmartAccount ,
343
- } ) ,
346
+ ) ,
344
347
] ) ;
345
348
expect ( txs . length ) . toEqual ( 2 ) ;
346
349
expect ( txs . every ( ( t ) => t . transactionHash . length === 66 ) ) . toBe ( true ) ;
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ export default async function globalSetup() {
62
62
63
63
const shutdownAnvil = await startProxy ( {
64
64
port : 8648 ,
65
+ options : {
66
+ balance : 1000000000n ,
67
+ } ,
65
68
} ) ;
66
69
67
70
// TODO re-enable thirdweb RPC for this fork
You can’t perform that action at this time.
0 commit comments