How to use the @nomiclabs/buidler/internal/buidler-evm/stack-traces/solidity-errors.wrapWithSolidityErrorsCorrection function in @nomiclabs/buidler

To help you get started, we’ve selected a few @nomiclabs/buidler 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 nomiclabs / buidler / packages / buidler-web3-legacy / src / pweb3.ts View on Github external
contract[abiElem.name] = async (...args: any[]) => {
        return wrapWithSolidityErrorsCorrection(() => {
          const pfied = promisify(original.bind(contract));
          return pfied(...args);
        }, 3);
      };
      contract[abiElem.name].getData = original.getData.bind(original);
github nomiclabs / buidler / packages / buidler-truffle4 / src / provisioner.ts View on Github external
instance[methodName].call = async (...args: any[]) => {
      return wrapWithSolidityErrorsCorrection(async () => {
        args = await this._ensureTxParamsWithDefaults(args, !isConstant);
        return originalCall.apply(original, args);
      }, 3);
    };