Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
/**
* This method will be executed after the RPC request.
*
* @method afterExecution
*
* @param {Object} response
*
* @returns {*}
*/
CallContractMethodModel.prototype.afterExecution = function (response) {
return this.methodResponseDecoder.decode(this.abiItem, response);
};
CallContractMethodModel.prototype = Object.create(CallMethodModel.prototype);
CallContractMethodModel.prototype.constructor = CallContractMethodModel;
module.exports = CallContractMethodModel;
CallContractMethodModel.prototype.beforeExecution = function (web3Package) {
this.parameters[0]['data'] = self.methodEncoder.encode(
this.contractMethodParameters,
this.abiItem,
this.signature,
web3Package.contractOptions.data
);
this.parameters[0] = this.getOrSetDefaultOptions(this.parameters[0], web3Package);
CallMethodModel.prototype.beforeExecution.call(this, web3Package);
};