🦼 Solidity's `try/catch` has a catch.
And you probably don't know about it.
Short and sweet thread about this Solidity feature.
🧵👇
😎 As always, we're also going to learn something from going through this journey.
This try/catch feature was added in Solidity 0.6. It was added as a response to low-level calls, something many devs were already using.
Sep 2, 2022 • 21 tweets • 5 min read
Solidity advanced tip time.
When extending or inheriting a few contracts, the order of inheritance matters.
I will explain below, with a proof of concept.
🧵👇
There are numerous cases where you create a contract and you inherit implementation from another contract. Most of the time, you'll inherit a bunch of OpenZeppelin @openzeppelin implementations.
🏄 For example, you want to create an ERC20 and will write something like this:
I just saw this tweet from Solana where they say 400,000 tps.
It's true that in order to have transactions "per second" you need to process them. The problem was the transactions were in the queue, not yet processed.