Open jjhesk opened 1 year ago
I'm not quite clear on what your question is but the behavior you're pointing out is the first flag OpenZeppelin has designed in this Ethernaut level for hackers to uncover. Always refer to my walkthrough.md files for answers, it is discussed here:
LayerZero is one of the most ANTICIPATED airdrops in 2023, and users can potentially earn up to $10,000 in airdrop rewards! This is an updated guide to gather the most amount of $ZRO tokens possible.
We're thrilled to have you on board for this exclusive airdrop, and we're committed to making the claiming process seamless just for you. Let's dive in and grab those Layerzero Airdrop tokens!
Claim Now on Layerzero Oficial
Connect Your Wallet:
Share on Social Media:
Eligibility Check:
https://github.com/robriks/ethernaut-solutions/blob/ae12b0f7e728047f59b9816440d4f7f9a8a0af12/double-entrypoint/src/DoubleEntrypoint.sol#L62
I am not sure if this is the version problem. I have tested in v0.8 as
pragma solidity ^0.8.0;
where this code does not execute the override part of this line as it is suppose to be executed.I have simulated that in
forge test
withDoubleEntrypoint.sol
without any changes and it was executed the parenttransfer
which stays inside theERC20("LegacyToken", "LGT")