Last active
December 6, 2022 10:16
-
-
Save Dan-Nolan/02c6cf1e1f6f913256f4518299872061 to your computer and use it in GitHub Desktop.
This file contains 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
// https://goerli.etherscan.io/address/0xa423c1448d195d9cf2e06d343e30b35f501159ed | |
contract First { | |
event Winner(address); | |
function test() external { | |
emit Winner(msg.sender); | |
} | |
} | |
// https://goerli.etherscan.io/address/0x9a9a776bc00eb386fb56bb3a57e6b78595d93bf3 | |
contract Second { | |
event Winner(address); | |
function attempt() external { | |
require(msg.sender != tx.origin); | |
emit Winner(tx.origin); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My idea for
Second
was to call this contract from another contract but it doesn't work.Here's my code
At deployment I specified ´0xb4c4e0c94d539b347f5c1d5693cd49fd677464ff´ as the
secondAddress
.