Is there a difference between this line:

(bool success, ) = dest.call{value: 0.1 ether}("");    

and this one:

(bool success, ) = dest.call.value(0.1 ether)("");

Which one should i use ?


1 Answer 1


Prior solc 0.6.4: (bool success, ) = dest.call.value(0.1 ether)("");.

As of solc 0.6.4: (bool success, ) = dest.call{value: 0.1 ether}("");.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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