#soliditytips search results
Coffee DApp shipped. README summary: From RPC fetches to payable txns. Gas calc? Base + tips = fair fuel. Portfolio piece #1 done. #Web3India #SolidityTips
Pro Tip: Writing cleaner Solidity code? Use underscores ( _ ) to separate large numbers! ➡️ 10_000 becomes much easier to read than 10000. #SolidityTips #CodeClarity
💡 Code Tip of the Week Need to verify a smart contract on Etherscan or BscScan? Use the Flattener plugin in ChainIDE: 🔹 Click → Flatten Contract 🔹 Paste into explorer 🔹 Done ✅ No manual merging. Just clean, verifiable code. #ChainIDE #SolidityTips…
Incorrect modifier in Solidity. Modifier should always run the function code. Otherwise get function will return a default value. (most likely 0). #soliditytips
Learning Solidity via @CyfrinUpdraft taught me one big truth. Writing failing tests first is the fastest way to understand smart contract logic. When the test passes, you don’t just fix code… you confirm understanding. #SolidityTips #BlockchainDev @CodeHawks @mahima_thacker
🚀 Solidity Tip: Use the keccak256 function to generate a SHA-3 hash in your smart contracts and compare string with it! 🤩 i.e: `bytes32 hash = keccak256("Hello, World!");` it will generate a fixed-size hash. 💻 #SolidityTips #BlockchainDevelopment
💡 Code Tip of the Week Not sure how to improve your contract? Use Code Sage → Advisor to get smart recommendations: 📎 Gas optimization 📦 Code cleanup 💬 Security-aware tips A dev buddy that actually reads your code. #ChainIDE #AIDevTools #SolidityTips
Decimals in Solidity can be tricky. ERC20 tokens like ETH have 10e18 decimals, but not all are the same. Precision matters in price conversions – adjust decimals first, then divide. - below example shows conversion of price to USD #SolidityTips #Solidity #Chainlink
👨💻 learn Solidity from real examples! here’s a basic function that restricts access used in 70%+ of contracts for access control #SolidityTips #SmartContracts #Web3Dev
🧵Top 5 Mistakes When Writing Solidity (And How to Avoid Them) These pitfalls can break your contract or waste gas. Let’s dive into clean, secure Solidity. #SolidityTips #SmartContracts #learningWeb3withMyke
Week 1 recap: ETH fundamentals + Ethers.js basics = Coffee DApp shipped. README summary: From RPC fetches to payable txns. Gas calc? Base + tips = fair fuel. Portfolio piece #1 done. #Web3India #SolidityTips
Stay tuned for more #SolidityTips! #Blockchain #Ethereum #SmartContracts
require(msg.sender == owner)’ is NOT enough. Use modifiers, follow patterns, and test access control. One missing check = millions gone. Don’t rely on hope — rely on structure. #Web3Dev #SolidityTips
Alternatives exist but have limitations. require(msg.sender == tx.origin) restricts calls to EOAs (Externally Owned Accounts), but isn't foolproof & has interoperability issues. Other methods using extcodehash are proposed, but require further testing. #EVM #SolidityTips
🧩 Day 269 of #360DaysOfCode Building Reusable Modifiers Refactored my contracts using reusable modifiers to make access control and validations cleaner. Makes the code more modular and easier to audit. #SolidityTips #CodeQuality #Web3 #SmartContracts
7 / 🧰 Uninitialized storage variables can be risky. Always initialize them to avoid unexpected behavior. #SolidityTips #BlockchainDevelopment
[2/3] Use external instead of public for functions only called outside the contract. It’s cheaper because external skips copying data to memory. Small tweaks, big savings! 🤑 #Web3Dev #SolidityTips
tx.origin is not an authentication method. #SolidityTips #SmartContractMistakes #web3security #solidity
🧩 Day 269 of #360DaysOfCode Building Reusable Modifiers Refactored my contracts using reusable modifiers to make access control and validations cleaner. Makes the code more modular and easier to audit. #SolidityTips #CodeQuality #Web3 #SmartContracts
Coffee DApp shipped. README summary: From RPC fetches to payable txns. Gas calc? Base + tips = fair fuel. Portfolio piece #1 done. #Web3India #SolidityTips
Learning Solidity via @CyfrinUpdraft taught me one big truth. Writing failing tests first is the fastest way to understand smart contract logic. When the test passes, you don’t just fix code… you confirm understanding. #SolidityTips #BlockchainDev @CodeHawks @mahima_thacker
Week 1 recap: ETH fundamentals + Ethers.js basics = Coffee DApp shipped. README summary: From RPC fetches to payable txns. Gas calc? Base + tips = fair fuel. Portfolio piece #1 done. #Web3India #SolidityTips
💡 Code Tip of the Week Not sure how to improve your contract? Use Code Sage → Advisor to get smart recommendations: 📎 Gas optimization 📦 Code cleanup 💬 Security-aware tips A dev buddy that actually reads your code. #ChainIDE #AIDevTools #SolidityTips
💡 Code Tip of the Week Need to verify a smart contract on Etherscan or BscScan? Use the Flattener plugin in ChainIDE: 🔹 Click → Flatten Contract 🔹 Paste into explorer 🔹 Done ✅ No manual merging. Just clean, verifiable code. #ChainIDE #SolidityTips…
DoS attacks don’t "hack" you, they trap you Prevent them with clean design, smart patterns, and solid testing. Build safer contracts. Don’t let one bad actor break everything. #SolidityTips #SmartContractSecurity #DeFi
MIT refers to the [MIT License], one of the most permissive open-source licenses. It allows anyone to use, copy, modify, and distribute your code as long as they include the original license. #Ethereum #SolidityTips
👨💻 learn Solidity from real examples! here’s a basic function that restricts access used in 70%+ of contracts for access control #SolidityTips #SmartContracts #Web3Dev
Like this thread? 🔄 Share with aspiring blockchain devs ⏳ Connect with @sundaytar1 for daily Web3 insights #SmartContractSecurity #Web3Development #SolidityTips #BlockchainSafety
🔁 Retweet to save someone from accidentally becoming a broke contract owner 😂 #Web3 #SolidityTips #SmartContractSecurity #buildinpublic
🔁 Retweet to help a new dev avoid a classic mistake. #SmartContract #SolidityTips #BuildInPublic #Web3Dev
12/ 🔁 If this thread helped you, give it a retweet. Someone out there needs this info before they deploy a vulnerable contract. 💬 Drop your questions below 👇 Let’s help each other grow safer and smarter in Web3. #SmartContract #SolidityTips #Web3Security #buildinpublic
7/ 🎯 If you're just starting out in Solidity, remember: “Just because it compiles doesn't mean it’s safe.” I learned that the hard way. You don’t have to. 🔁 Retweet to help a new dev avoid a disaster. #Web3Dev #SolidityTips #SmartContractSecurity #100DaysOfCode
3. Enter delegatecall This low-level opcode runs code in another contract's context, using your own storage. It’s how proxies forward calls : (bool success, ) = impl.delegatecall(data); The magic behind upgrades. #SolidityTips #learningWeb3withMyke
✅ Voter must be registered ✅ One vote per wallet ✅ Candidate name gets a vote #BlockchainDev #SolidityTips
You control who can vote. 🗳️ – Voting Function Simple but secure vote casting: function vote(string memory candidate) external { require(voters[msg.sender], "Not registered"); votes[candidate]++; voters[msg.sender] = false; } #BlockchainDev #SolidityTips
[2/3] Use external instead of public for functions only called outside the contract. It’s cheaper because external skips copying data to memory. Small tweaks, big savings! 🤑 #Web3Dev #SolidityTips
🎧Did You Know❓From the hamburger icon on the File Explorer, you can now generate a GitHub action to run Solidity Unit Tests! #RemixDidYouKnow #Solidity #SolidityTips
💡 Code Tip of the Week Need to verify a smart contract on Etherscan or BscScan? Use the Flattener plugin in ChainIDE: 🔹 Click → Flatten Contract 🔹 Paste into explorer 🔹 Done ✅ No manual merging. Just clean, verifiable code. #ChainIDE #SolidityTips…
Incorrect modifier in Solidity. Modifier should always run the function code. Otherwise get function will return a default value. (most likely 0). #soliditytips
Pro Tip: Writing cleaner Solidity code? Use underscores ( _ ) to separate large numbers! ➡️ 10_000 becomes much easier to read than 10000. #SolidityTips #CodeClarity
Coffee DApp shipped. README summary: From RPC fetches to payable txns. Gas calc? Base + tips = fair fuel. Portfolio piece #1 done. #Web3India #SolidityTips
PSA Let's add a bit of decorum to our Smart Contracts! Functions with `courtesy` modifier require sender to ask `please` before using... or they can `pretty_please` for a fee. - `stars` for priority use?? - what if `stars` were GasToken or Chi 😈 #SolidityTips
🚀 Solidity Tip: Use the keccak256 function to generate a SHA-3 hash in your smart contracts and compare string with it! 🤩 i.e: `bytes32 hash = keccak256("Hello, World!");` it will generate a fixed-size hash. 💻 #SolidityTips #BlockchainDevelopment
TIL: We can use named arguments instead of position based arguments when calling methods or instantiating structs. #SolidityTips #ReadableCode
🤔 In solidity, did you know... As of solidity 0.8.12, you can concatenate strings easily with string.concat instead of abi.encodePacked. #Solidity #SolidityTips #Web3
#soliditytips Using the selfdestruct function, you can send Ether to a contract that does not accept Ether. This function will transfer all Ether from a contract to an address specified by the caller.
👨💻 learn Solidity from real examples! here’s a basic function that restricts access used in 70%+ of contracts for access control #SolidityTips #SmartContracts #Web3Dev
Decimals in Solidity can be tricky. ERC20 tokens like ETH have 10e18 decimals, but not all are the same. Precision matters in price conversions – adjust decimals first, then divide. - below example shows conversion of price to USD #SolidityTips #Solidity #Chainlink
🧵Top 5 Mistakes When Writing Solidity (And How to Avoid Them) These pitfalls can break your contract or waste gas. Let’s dive into clean, secure Solidity. #SolidityTips #SmartContracts #learningWeb3withMyke
💡 Code Tip of the Week Not sure how to improve your contract? Use Code Sage → Advisor to get smart recommendations: 📎 Gas optimization 📦 Code cleanup 💬 Security-aware tips A dev buddy that actually reads your code. #ChainIDE #AIDevTools #SolidityTips
Smart contracts can transfer ether to address via three methods which are transfer, send and call. For an address to be able to receive ether it must be declared as payable. When ether is sent via transfer and send method, 2300 gas is sent along for execution #soliditytips
#soliditytips Error in Solidity can be thrown using either one of require, revert and assert. As at Solidity ^0.8.0, there exists an error type that can be defined by you. Require is used to test for a condition and if the check fails, an error is thrown
Did you know that if you view any verified contract on @Etherscan you just need to change the domain to remix.ethereum.org and it'll open it up in @EthereumRemix #SolidityTips #SolidityHacks #SolidityRemix
Something went wrong.
Something went wrong.
United States Trends
- 1. Justin Fields 9,268 posts
- 2. Jets 66.3K posts
- 3. Patriots 143K posts
- 4. Drake Maye 18.8K posts
- 5. Jalen Johnson 5,206 posts
- 6. #FinallyOverIt N/A
- 7. Henderson 21.2K posts
- 8. AD Mitchell 2,286 posts
- 9. Judge 180K posts
- 10. Pats 14K posts
- 11. #criticalrolespoilers 2,246 posts
- 12. Diggs 10.1K posts
- 13. Cal Raleigh 7,365 posts
- 14. #TNFonPrime 3,310 posts
- 15. Santana 13.5K posts
- 16. Summer Walker 9,047 posts
- 17. #GreysAnatomy 2,054 posts
- 18. Mike Vrabel 5,842 posts
- 19. Purdue 8,924 posts
- 20. #TNAiMPACT 5,758 posts