diff --git a/.changeset/moody-moose-shop.md b/.changeset/moody-moose-shop.md new file mode 100644 index 000000000..f45914f5f --- /dev/null +++ b/.changeset/moody-moose-shop.md @@ -0,0 +1,5 @@ +--- +"@rabbitholegg/questdk-plugin-titles": patch +--- + +fix failing tests for titles simulateMint diff --git a/packages/titles/src/Titles.test.ts b/packages/titles/src/Titles.test.ts index e181275d4..8a1edefc7 100644 --- a/packages/titles/src/Titles.test.ts +++ b/packages/titles/src/Titles.test.ts @@ -137,35 +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, - 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('0x432f4Ccc39AB8DD8015F590a56244bECb8D16933') - 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, + chainId: Chains.ZORA, + tokenId: 1, recipient: '0xf70da97812CB96acDF810712Aa562db8dfA3dbEF', } const value = parseEther('0.0005') @@ -178,7 +154,7 @@ describe('simulateMint function', () => { ) const request = result.request - expect(request.address).toBe('0x06d7D870a41a44B5b7eBF46019bD5f8487362de3') + expect(request.address).toBe('0xc1eee0e85cf2356357ccad2cd1a60a5935538e4d') expect(request.functionName).toBe('mint') expect(request.value).toBe(value) })