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
Hello @austintgriffith ,
I am trying to migrate the contract to the latest Solidity version. My understanding is that 0.5.0+ enforces stronger types. I managed to fix most errors except one, line 90.
I replaced this require(msg.sender.call.value(rewardAmount).gas(36000)()); with require(msg.sender.call.value(rewardAmount).gas(36000)("")); as recommended in the breaking changes section of the docs.
However I am still returned the following error : TypeError: No matching declaration found after argument-dependent lookup. require(msg.sender.call.value(rewardAmount).gas(36000)(""));
I am not sure what the problem is. I tried to search on S.O & Goog and from the different posts I read, it seems related to parameters not being of the good type.
I am a bit clueless as to how to fix that error though.
Do you have any ideas ?
Many thanks.
The text was updated successfully, but these errors were encountered:
Hello @austintgriffith ,
I am trying to migrate the contract to the latest Solidity version. My understanding is that 0.5.0+ enforces stronger types. I managed to fix most errors except one, line 90.
I replaced this
require(msg.sender.call.value(rewardAmount).gas(36000)());
withrequire(msg.sender.call.value(rewardAmount).gas(36000)(""));
as recommended in the breaking changes section of the docs.However I am still returned the following error :
TypeError: No matching declaration found after argument-dependent lookup. require(msg.sender.call.value(rewardAmount).gas(36000)(""));
I am not sure what the problem is. I tried to search on S.O & Goog and from the different posts I read, it seems related to parameters not being of the good type.
I am a bit clueless as to how to fix that error though.
Do you have any ideas ?
Many thanks.
The text was updated successfully, but these errors were encountered: