Skip to content

Commit c395f7b

Browse files
authored
Merge pull request #20 from OffchainLabs/kolbyml/add-overwriteContractCode
ArbDebug: add overwriteContractCode interface
2 parents 3fc535b + c7b5bf4 commit c395f7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ArbDebug.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ interface ArbDebug {
1212
/// @notice Caller becomes a chain owner
1313
function becomeChainOwner() external;
1414

15+
/// @notice Overwrite an existing contract's code
16+
function overwriteContractCode(
17+
address target,
18+
bytes calldata newCode
19+
) external returns (bytes memory oldCode);
20+
1521
/// @notice Emit events with values based on the args provided
1622
function events(
1723
bool flag,

0 commit comments

Comments
 (0)