Lets supose i got a contract named
Contract (already an instance).
And this contract got a method/function named
function with the
This method gets the address of the caller and the amount paid to do some stuff.
I've tried calling it by:
Contract.function.value(x)(arguments) but it throws me
TypeError: 'value' is not a function.
How can i call this contract and send (as example) 5 ether to this function?