You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be able to send transactions with value on payable contract method.
Actual behavior
Error 'Can not send value to non-payable contract method or constructor'
Steps to reproduce the behavior
const contract = new web3.eth.Contract(
ABI,
CONTRACT_ADDRESS,
);
contract.methods.method(...params).estimateGas({ value, from });
Method isValueValid from MethodOptionsValidator.js tried to call abiItemModel.payable, but it doesn't have this property and then it returns undefined .
(in constructor the developer simply forgot to assign payable value to the method's property)
Error Logs
Error: 'Can not send value to non-payable contract method or constructor'
Versions
web3@1.0.0-beta.41
The text was updated successfully, but these errors were encountered:
Expected behavior
Should be able to send transactions with value on payable contract method.
Actual behavior
Error
'Can not send value to non-payable contract method or constructor'
Steps to reproduce the behavior
Method
isValueValid
from MethodOptionsValidator.js tried to callabiItemModel.payable
, but it doesn't have this property and then it returnsundefined
.(in constructor the developer simply forgot to assign payable value to the method's property)
Error Logs
Error: 'Can not send value to non-payable contract method or constructor'
Versions
web3@1.0.0-beta.41
The text was updated successfully, but these errors were encountered: