Skip to content

Commit

Permalink
fix: Lowercase comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Dec 23, 2024
1 parent 09c9ff7 commit 0b21e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/trades/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export async function isEstateFingerprintValid(
const provider = new JsonRpcProvider(getRPCUrlByChainId(chainId))
const contract = new Contract(contractAddress, abi, provider)
const estateFingerprint = await contract.getFingerprint(tokenId)
return estateFingerprint === fingerprint
return estateFingerprint.toLowerCase() === fingerprint.toLowerCase()
}

export async function validateAssetOwnership(asset: ERC721TradeAsset, signer: string, chainId: ChainId): Promise<boolean> {
Expand Down

0 comments on commit 0b21e77

Please sign in to comment.