Skip to content

Commit

Permalink
refactor(zora): use mock tests for intent and simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Jul 15, 2024
1 parent 1f6b17a commit 188b927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/zora/src/Zora.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -434,7 +434,7 @@ describe('simulateMint function', () => {

const mint: MintIntentParams = {
chainId: Chains.BLAST,
contractAddress: '0x553f0a63858a9000212cdbd0c40cf7861b692dc0',
contractAddress: '0x8704c8b68e577d54be3c16341fbd31bac47c7471',
tokenId: 1,
amount: BigInt(1),
recipient: '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF',
Expand All @@ -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)
Expand Down

0 comments on commit 188b927

Please sign in to comment.