Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
instance[methodName].call = async (...args: any[]) => {
return wrapWithSolidityErrorsCorrection(async () => {
args = await this._ensureTxParamsWithDefaults(args, !isConstant);
return originalCall.apply(original, args);
}, 3);
};