How to use the @ethersproject/abi.Interface.isInterface function in @ethersproject/abi

To help you get started, we’ve selected a few @ethersproject/abi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethers-io / ethers.js / packages / contracts / lib.esm / index.js View on Github external
static getInterface(contractInterface) {
        if (Interface.isInterface(contractInterface)) {
            return contractInterface;
        return new Interface(contractInterface);
    // @TODO: Allow timeout?