function from a proxy contract (address(proxy).call(data)) .. as i undersatnd the signature of the function i called does not match any function in the proxy it self so it will invoke the fullback function. the fallback function has an implementation that delegatecall to another contract that have this function i called , however the delegatedcall got revert ;
the issue is the call function returned true ?i don't get it ? any one please can explain ?
Low level call doesn't care about other internal calls. In this case, call executed "successfully" as there was a fallback. If the fallback wasn't there, you would've got a false. If you make a transaction like this, the explorer will show it as a successful tx with a small warning that says something like 'one or more internal transactions failed'
thank's bro ,, but it actaully returned false , i did debug it the issue was with foundry cheatcode vm.expectRevert() ,, when i use it some how returns true even if i call the function directly (without fallback or delgatecall)
Interesting. So the call returned false even though there was a fallback with an external call?
yea , i think cause the fallback delegatecall
Обсуждают сегодня