Skip to content

Commit

Permalink
comparison with lowercase addresses (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Feb 26, 2024
1 parent a482feb commit 186b2ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const getContractData = async (address: string) => {

const deployedContractsOnChain = contracts ? contracts[chainId] : {};
for (const [contractName, contractInfo] of Object.entries(deployedContractsOnChain)) {
if (contractInfo.address.toLowerCase() === address) {
if (contractInfo.address.toLowerCase() === address.toLowerCase()) {
contractPath = `contracts/${contractName}.sol`;
break;
}
Expand Down

0 comments on commit 186b2ce

Please sign in to comment.