Skip to content

Commit

Permalink
fix: explicit type for contractAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
gleiser-oliveira committed Dec 5, 2023
1 parent 3994917 commit b5b668a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/ReadableActionSignature/getContractName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const getContractName = ({ target, vTokens, tokens, chainId }: GetContractNameIn
// Search within contracts
const matchingUniqueContractInfo = Object.entries(addresses).find(
([_uniqueContractName, address]) => {
let contractAddress;
let contractAddress: string | Record<number, string> = '';

if (Object.prototype.hasOwnProperty.call(address, chainId)) {
contractAddress = address[chainId as keyof typeof address];
Expand Down

0 comments on commit b5b668a

Please sign in to comment.