@@ -101,6 +101,7 @@ test('args: allowFailure', async () => {
101101} )
102102
103103test ( 'args: batchSize' , async ( ) => {
104+ vi . resetAllMocks ( )
104105 const spy_1 = vi . spyOn ( readContract , 'readContract' )
105106 expect (
106107 await multicall ( client , {
@@ -198,6 +199,7 @@ test('args: batchSize', async () => {
198199 ` )
199200 expect ( spy_1 ) . toBeCalledTimes ( 3 )
200201
202+ vi . resetAllMocks ( )
201203 const spy_2 = vi . spyOn ( readContract , 'readContract' )
202204 await multicall ( client , {
203205 batchSize : 32 ,
@@ -220,6 +222,7 @@ test('args: batchSize', async () => {
220222 } )
221223 expect ( spy_2 ) . toBeCalledTimes ( 2 )
222224
225+ vi . resetAllMocks ( )
223226 const spy_3 = vi . spyOn ( readContract , 'readContract' )
224227 await multicall ( client , {
225228 batchSize : 0 ,
@@ -552,8 +555,6 @@ describe('errors', async () => {
552555 - The parameters passed to the contract function may be invalid, or
553556 - The address is not a contract.
554557
555- Contract Call:
556- address: 0x0000000000000000000000000000000000000000
557558
558559 Docs: https://viem.sh/docs/contract/multicall
559560@@ -604,7 +605,6 @@ describe('errors', async () => {
604605 - The address is not a contract.
605606
606607 Contract Call:
607- address: 0x0000000000000000000000000000000000000000
608608 function: balanceOf(address account)
609609 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045)
610610
@@ -658,7 +658,6 @@ describe('errors', async () => {
658658 - The address is not a contract.
659659
660660 Contract Call:
661- address: 0x0000000000000000000000000000000000000000
662661 function: balanceOf(address account)
663662 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045)
664663
@@ -724,7 +723,6 @@ describe('errors', async () => {
724723 ERC721: transfer caller is not owner nor approved
725724
726725 Contract Call:
727- address: 0x0000000000000000000000000000000000000000
728726 function: transferFrom(address from, address to, uint256 tokenId)
729727 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045, 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266, 1)
730728
@@ -742,7 +740,6 @@ describe('errors', async () => {
742740 EnumerableSet: index out of bounds
743741
744742 Contract Call:
745- address: 0x0000000000000000000000000000000000000000
746743 function: tokenOfOwnerByIndex(address owner, uint256 index)
747744 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045, 1)
748745
@@ -801,7 +798,6 @@ describe('errors', async () => {
801798 You can look up the decoded signature here: https://openchain.xyz/signatures?query=0xf9006398.
802799
803800 Contract Call:
804- address: 0x0000000000000000000000000000000000000000
805801 function: simpleCustomRead()
806802
807803 Docs: https://viem.sh/docs/contract/decodeErrorResult
@@ -951,8 +947,6 @@ describe('errors', async () => {
951947 - The parameters passed to the contract function may be invalid, or
952948 - The address is not a contract.
953949
954- Contract Call:
955- address: 0x0000000000000000000000000000000000000000
956950
957951 Docs: https://viem.sh/docs/contract/multicall
958952@@ -993,8 +987,6 @@ describe('errors', async () => {
993987 [ContractFunctionExecutionError: Function "lol" not found on ABI.
994988 Make sure you are using the correct ABI and that the function exists on it.
995989
996- Contract Call:
997- address: 0x0000000000000000000000000000000000000000
998990
999991 Docs: https://viem.sh/docs/contract/encodeFunctionData
1000992@@ -1028,7 +1020,6 @@ describe('errors', async () => {
10281020 Given length (values): 2
10291021
10301022 Contract Call:
1031- address: 0x0000000000000000000000000000000000000000
10321023 function: balanceOf(address account)
10331024 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045)
10341025
@@ -1068,7 +1059,6 @@ describe('errors', async () => {
10681059 - The address is not a contract.
10691060
10701061 Contract Call:
1071- address: 0x0000000000000000000000000000000000000000
10721062 function: balanceOf(address account)
10731063 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045)
10741064
@@ -1112,7 +1102,6 @@ describe('errors', async () => {
11121102 ERC721: transfer caller is not owner nor approved
11131103
11141104 Contract Call:
1115- address: 0x0000000000000000000000000000000000000000
11161105 function: transferFrom(address from, address to, uint256 tokenId)
11171106 args: (0xd8da6bf26964af9d7eed9e03e53415d37aa96045, 0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266, 1)
11181107
@@ -1159,7 +1148,6 @@ describe('errors', async () => {
11591148 You can look up the decoded signature here: https://openchain.xyz/signatures?query=0xf9006398.
11601149
11611150 Contract Call:
1162- address: 0x0000000000000000000000000000000000000000
11631151 function: simpleCustomRead()
11641152
11651153 Docs: https://viem.sh/docs/contract/decodeErrorResult
0 commit comments