Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const method = function(...args: any[]) {
const smartContractMethodSchema = new ParameterSchema(
entrypoints[smartContractMethodName]
);
validateArgs(args, smartContractMethodSchema, smartContractMethodName);
return new ContractMethod(
provider,
address,
smartContractMethodSchema,
smartContractMethodName,
args
);
};
this.methods[smartContractMethodName] = method;