Solidity Trivias
This repo contains condensed demos and explanations for the Solidity trivias being shared on twitter via the profile: https://twitter.com/the_ethernaut
Running the examples
- Clone the repo:
git clone [email protected]:ajsantander/trivias.git
- Move to the folder:
cd trivias
- Install hardhat and dependencies:
npm install
Trivias
Solidity Trivia #1:
"How would you call a function on a third party contract B, on behalf of the sender, through your contract A, guaranteeing no reverts?"
- Question thread: Solidity trivia #1 discussion
- Explanation thread: Solidity trivia #1 explanation
- Demo contracts:
contracts/Trivia1.sol
- Demo tests:
npx hardhat test test/Trivia1.test.js
Solidity Trivia #2:
"What’s the main difference between a transparent proxy and a universal proxy?"
- Question thread: Solidity trivia #2 discussion
- Explanation thread: Solidity trivia #2 explanation
- Demo contracts:
contracts/Trivia2.sol
- Demo tests:
npx hardhat test test/Trivia2.test.js