From ec8806aa73b3d7d0a3f667f441a7182faaad1d5c Mon Sep 17 00:00:00 2001 From: Kaan Uzdogan Date: Thu, 23 Feb 2023 11:01:13 +0100 Subject: [PATCH] Fix matchWithCreatorTx address comparison --- packages/lib-sourcify/src/lib/verification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib-sourcify/src/lib/verification.ts b/packages/lib-sourcify/src/lib/verification.ts index 0844a16e5..ae8ffdd58 100644 --- a/packages/lib-sourcify/src/lib/verification.ts +++ b/packages/lib-sourcify/src/lib/verification.ts @@ -262,7 +262,7 @@ export async function matchWithCreationTx( from: creatorTx.from, nonce: creatorTx.nonce, }); - if (createdContractAddress !== address) { + if (createdContractAddress.toLowerCase() !== address.toLowerCase()) { match.message = `The address being verified ${address} doesn't match the address of the contract ${createdContractAddress} that will be created by the transaction ${creatorTxHash}.`; return; }