No time to learn #Solidity

It will only take you 2 minutes to learn what Function Modifiers are.

👇🧵 Image
➡️Function modifiers are used to change the behavior of a function.

➡️They can be used to add requirements to functions, restrict access, validate inputs, etc.
👇First let's see how it is defined

➡️Within the modifier declaration, you establish a condition to be fulfilled

➡️You can do this with a require, a conditional statement,...

➡️ Then there's an underscore ( _; ), which is used to tell Solidity to execute the rest of the code. Image
Let's see an example:

A contract with a function that allows changing the owner of the contract (and that can only be called by the current owner) Image
If you found it useful, please engage with the tweet below:
🔁 Retweet
👍 Like
💬 Comment

Drop a 👋 if you are interested in #Solidity and #Web3 content

Let's connect👉 @Web3Oscar

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Oscar | Web3 Dev ⚡

Oscar | Web3 Dev ⚡ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Web3Oscar

May 10
Want to become a great BLOCKCHAIN developer?

Learn how the technology works first.

Check out this curated list of FREE resources.

🧵↓
1) Learn Blockchain: The COMPLETE beginner’s guide
2) Blockchain Technology Explained (2 Hour Course)
Read 8 tweets
May 9
Top 10 Ethereum Development Tools

A Thread🧵👇
Metamask: wallet
metamask.io
Remix: in-browser IDE
remix.ethereum.org
Read 12 tweets
May 9
What is PRAGMA in Solidity?

🧵👇Mini Thread
Pragma is a keyword that is placed at the beginning of the code, along with the version of Solidity to be used.
What is it for?
· It tells the compiler how to execute the file
· It configures the compiler features and checks
Read 6 tweets
May 6
Don't waste $13k on courses and bootcamps. 💰

Top 10 Youtube channels to learn Web3 for FREE.

A Thread 🧵
Read 13 tweets
May 6
Get a remote job in web3 🔥

(Avg. Salary +$100K per year 💰)

A Thread 🧵↓
1/ @Web3Career · Browse 14,654 jobs in Web3 at 1,773 Web3 Projects

web3.career
2/ @CryptoJobsList · Connect with companies hiring in a few clicks and begin your next experience in the industry.

cryptojobslist.com
Read 7 tweets
May 5
❌NOTHING can be deleted from the blockchain.

🤔 Or maybe yes ...

👇🧵 Self-Destruct operation in #Solidity
👉There is a way to delete Smart Contracts from the Blockchain, using the self-destruct operation.

👉If there is any remaining Ether stored at that address it is sent to a designated target.
Let's see an example!
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(