Skip to content

Commit

Permalink
test(titles): Update mint parameters and remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Aug 15, 2024
1 parent 3c1740e commit 9589fdf
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions packages/titles/src/Titles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ describe('Given the getFee function', () => {
describe('simulateMint function', () => {
test('should simulate a V2 mint', async () => {
const contractAddress: Address =
'0x432f4Ccc39AB8DD8015F590a56244bECb8D16933'
'0xc1eee0e85cf2356357ccad2cd1a60a5935538e4d'
const mintParams = {
contractAddress,
chainId: Chains.BASE,
tokenId: 4,
chainId: Chains.ZORA,
tokenId: 1,
recipient: '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF',
}
const value = parseEther('0.0005')
Expand All @@ -158,30 +158,6 @@ describe('simulateMint function', () => {
expect(request.functionName).toBe('mint')
expect(request.value).toBe(value)
})

test('should simulate a V2 mint', async () => {
const contractAddress: Address =
'0x06d7D870a41a44B5b7eBF46019bD5f8487362de3'
const mintParams = {
contractAddress,
chainId: Chains.BASE,
tokenId: 5,
recipient: '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF',
}
const value = parseEther('0.0005')
const address = mintParams.recipient as Address

const result = await simulateMint(
mintParams as MintIntentParams,
value,
address,
)

const request = result.request
expect(request.address).toBe('0x06d7D870a41a44B5b7eBF46019bD5f8487362de3')
expect(request.functionName).toBe('mint')
expect(request.value).toBe(value)
})
})

describe('getExternalUrl function', () => {
Expand Down

0 comments on commit 9589fdf

Please sign in to comment.