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
For the following line: (bool success, ) = msg.sender.call{value: amount}(""); ; I am getting following error message:
Syntax error: unexpected token {
✖ 1 error found.
But solidity 0.7.0 recommend us to use {value: ...} an usage of { seems correct. Why solium generates this error message even it is correct and recommended usage in Solidity?
TypeError: Using ".value(...)" is deprecated. Use "{value: ...}" instead.
(bool success, ) = msg.sender.call.value(amount)("");
The text was updated successfully, but these errors were encountered:
For the following line:
(bool success, ) = msg.sender.call{value: amount}("");
; I am getting following error message:But
solidity 0.7.0
recommend us to use{value: ...}
an usage of{
seems correct. Why solium generates this error message even it is correct and recommended usage in Solidity?The text was updated successfully, but these errors were encountered: