Skip to content

add Inline assembly solidity challenge#30

Open
Elli610 wants to merge 5 commits into
LevelUpWeb3:mainfrom
Elli610:inline-assembly
Open

add Inline assembly solidity challenge#30
Elli610 wants to merge 5 commits into
LevelUpWeb3:mainfrom
Elli610:inline-assembly

Conversation

@Elli610

@Elli610 Elli610 commented Sep 3, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Sep 3, 2024

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2024 9:29am

@PrintRH PrintRH left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing work! Thank you very much for your contributions @Elli610 🎉!

Love how you embrace the OS spirits by expanding the Solidity knowledge. This is exactly why we love the community 🫶🏻

exercise5:
"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\n// Step 1: Implement a contract named 'SendEtherChecked'\n// Step 2: Inside the 'SendEtherChecked' contract, declare a public mapping named 'balances' that maps addresses to uint256\n// Step 3: Still inside the 'SendEtherChecked' contract, implement a function named 'sendEther' that takes two parameters: an address payable 'recipient' and a uint256 'amount'\n// Step 4: The 'sendEther' function should be public and payable\n// Step 5: Inside the 'sendEther' function, add a require statement to check that the sender has enough Ether to send\n// Step 6: Still inside the 'sendEther' function, update the balances of the sender and the recipient\n// Step 7: Still inside the 'sendEther' function, use the 'call' method to send the specified amount of Ether to the specified address\n// Step 8: Add a require statement to check that the call was successful\n",
},
"inline-assembly": {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work! Do you think it's possible to expand to five exercises and solutions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants