Skip to content

Commit 5a56156

Browse files
committed
fix
1 parent dd197be commit 5a56156

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

e2e/zombienet/src/hooks/useContractQuery_2.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { renderHook, waitFor } from '@testing-library/react';
55
import { useContractQuery, useContractTx, useRawContract } from 'typink';
66
import { Contract } from 'dedot/contracts';
77
import { Psp22ContractApi } from 'contracts/psp22';
8+
import { set } from 'husky';
89

910
describe('useContractQuery_2', () => {
1011
let contractAddress: string, contract: Contract<Psp22ContractApi>;
@@ -73,7 +74,9 @@ describe('useContractQuery_2', () => {
7374
});
7475
console.log('Transfer completed!');
7576

76-
balanceOf.current.refresh();
77+
setTimeout(() => {
78+
balanceOf.current.refresh();
79+
}, 20);
7780

7881
await sleep(50);
7982

0 commit comments

Comments
 (0)