Skip to content

Commit

Permalink
cleanup: remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Feb 24, 2025
1 parent 952f1de commit 170b588
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export const ContractMethodInputsFieldArray = ({
</FormControl>
<SelectContent>
{paramOptions.map((param) => (
// TODO: value as number?...
<SelectItem
key={param.value}
value={String(param.value)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ const fetchContractMethods = async (
abi: Abi
} = await fetcher(`${baseUrl}/smart-contracts/${address}`)

if (!!contract.proxy_type) {
// TODO: do we need to fetch each implementation? I should ask Tomi about this
contract = await fetcher(
`${baseUrl}/smart-contracts/${contract.implementations[0].address}`
)
const implementationAddress = contract.implementations.at(-1)?.address

if (!!contract.proxy_type && implementationAddress) {
contract = await fetcher(`${baseUrl}/smart-contracts/${implementationAddress}`)
}

if (!contract.abi)
Expand Down

0 comments on commit 170b588

Please sign in to comment.