Skip to content

Commit

Permalink
refactor(Zora): simplify mint simulation return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Aug 8, 2024
1 parent c00cd61 commit 95c701d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/zora/src/Zora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,9 @@ export const simulateMint = async (
}) as PublicClient)

try {
const result = await simulateV2Mint(mint, value, _client, account)
return result
return await simulateV2Mint(mint, value, _client, account)
} catch {
const result = await simulateV1Mint(mint, value, _client, account)
return result
return await simulateV1Mint(mint, value, _client, account)
}
}

Expand Down

0 comments on commit 95c701d

Please sign in to comment.