Skip to content

Commit 52fb6a3

Browse files
committed
fix: fix unit tests
1 parent 006e2ad commit 52fb6a3

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

apps/cowswap-frontend/src/common/hooks/useCancelOrder/useSendOnChainCancellation.test.tsx

+12-9
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,18 @@ describe('useSendOnChainCancellation() + useGetOnChainCancellation()', () => {
8282
ethFlowInvalidationMock.mockResolvedValue({ hash: ethFlowCancellationTxHash })
8383

8484
mockUseEthFlowContract.mockReturnValue({
85-
contract: {
86-
estimateGas: {
87-
invalidateOrder: () => Promise.resolve(BigNumber.from(100)),
88-
},
89-
invalidateOrder: ethFlowInvalidationMock,
90-
} as any,
91-
chainId,
92-
error: null,
93-
loading: false,
85+
result: {
86+
contract: {
87+
estimateGas: {
88+
invalidateOrder: () => Promise.resolve(BigNumber.from(100)),
89+
},
90+
invalidateOrder: ethFlowInvalidationMock,
91+
} as any,
92+
chainId,
93+
error: null,
94+
loading: false,
95+
},
96+
useNewEthFlowContracts: false,
9497
})
9598

9699
settlementInvalidationMock.mockResolvedValue({ hash: settlementCancellationTxHash })

0 commit comments

Comments
 (0)