DEV Community

Mokel
Mokel

Posted on

Answer: How to check if a method exists in solidity contract?

there are my lastest methods used to check if a contract has a function:

import _ from 'lodash'
import { Abi, Address, BaseError, ContractFunctionRevertedError, PublicClient } from 'viem';
import Web3 from 'web3';


/**
 * @description unable to penetrate proxy contracts
 * @param method The param need the format:```transferFrom(address,address,uint256)```
 */
export

Top comments (0)