From 188b927938c1683c851365ea423aff5178fe8429 Mon Sep 17 00:00:00 2001 From: mmackz Date: Mon, 15 Jul 2024 13:23:30 -0700 Subject: [PATCH] refactor(zora): use mock tests for intent and simulation --- packages/zora/src/Zora.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/zora/src/Zora.test.ts b/packages/zora/src/Zora.test.ts index bedfb2723..ecbdb73eb 100644 --- a/packages/zora/src/Zora.test.ts +++ b/packages/zora/src/Zora.test.ts @@ -411,7 +411,7 @@ describe('simulateMint function', () => { const value = parseEther('0.000777') const account = '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF' - const result = await simulateMint(mint, value, account) + const result = await mockFn.simulateMint(mint, value, account) const request = result.request expect(request.address).toBe(mint.contractAddress) expect(request.value).toBe(value) @@ -434,7 +434,7 @@ describe('simulateMint function', () => { const mint: MintIntentParams = { chainId: Chains.BLAST, - contractAddress: '0x553f0a63858a9000212cdbd0c40cf7861b692dc0', + contractAddress: '0x8704c8b68e577d54be3c16341fbd31bac47c7471', tokenId: 1, amount: BigInt(1), recipient: '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF', @@ -443,7 +443,7 @@ describe('simulateMint function', () => { const value = parseEther('0.000777') const account = '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF' - const result = await simulateMint(mint, value, account) + const result = await mockFn.simulateMint(mint, value, account) const request = result.request expect(request.address).toBe(mint.contractAddress) expect(request.value).toBe(value)