Skip to content

Commit

Permalink
Fix matchWithCreatorTx address comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzdogan committed Feb 23, 2023
1 parent 10eea6c commit ec8806a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib-sourcify/src/lib/verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ec8806a

Please sign in to comment.