0

My syntax seems to be ok, so I do not understand this CompileErrorenter image description here

1

My syntax seems to be ok

The compiler thinks otherwise :-)

You're missing some brackets ( ) around the curly braces...

(bool success) = address(parentContract).call({value: msg.value})(abi.encodeWithSignature("triggerPayment(uint256)", index));
1
0

Please check if the version of Solidity is correct. Changed in version 0.6.4, please try version 0.6.4 or higher.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.