mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-25 10:37:57 +00:00
296a226d0b
Closes #235 --------- Signed-off-by: xermicus <cyrill@parity.io>
39 lines
824 B
Solidity
39 lines
824 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.28;
|
|
|
|
/* runner.json
|
|
{
|
|
"differential": true,
|
|
"actions": [
|
|
{
|
|
"Instantiate": {
|
|
"code": {
|
|
"Solidity": {
|
|
"contract": "DelegateCaller"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Call": {
|
|
"dest": {
|
|
"Instantiated": 0
|
|
},
|
|
"data": "e466c6c9"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
*/
|
|
|
|
contract DelegateCaller {
|
|
function delegateNoContract() external returns (bool) {
|
|
address testAddress = 0x0000000000000000000000000000000000000000;
|
|
(bool success, ) = testAddress.delegatecall(
|
|
abi.encodeWithSignature("test()")
|
|
);
|
|
return success;
|
|
}
|
|
}
|