Lesson14: CallAnything.sol - bool: false #2879
Unanswered
DorianDaSilva
asked this question in
Q&A
Replies: 2 comments
-
Did you get a fix? I am also facing the same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
copy/pasting your code into Remix, it works if I remove the space in the assignment of i.e., this: function getSelectorOne() public pure returns(bytes4 selector){
selector = bytes4(keccak256(bytes("transfer(address,uint256)")));
} instead of this: function getSelectorOne() public pure returns(bytes4 selector){
selector = bytes4(keccak256(bytes("transfer(address, uint256)")));
} the compiler won't notice because it's just a string input. I had a similar issue (missing end parenthesis) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Timestamp: 22:56:45
Issue: When trying to call
callTransferFunctionDirectly()
using contract address in remix it returnsbool: false
instead oftrue
Same issue repeats itself with
function callTransferFunctionDirectlySig(address someAddress, uint256 amount)
butbool
doesn't even show in the transaction receipt.Not sure what I missed (PS: Solidity version has no impact on result on my end)
====================================================================================
callAnything.sol
Beta Was this translation helpful? Give feedback.
All reactions