#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

vanjregautham1's tweet image. 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

viktoronweb3's tweet image. 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

ChainIDE's tweet image. 💡 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

firatstory's tweet image. 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

realtauseed's tweet image. 🚀 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

ChainIDE's tweet image. 💡 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

KumandosX's tweet image. 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

abbaeth_'s tweet image. 👨‍💻 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

MykeReckon's tweet image. 🧵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


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


🧩 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

vanjregautham1's tweet image. 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

ChainIDE's tweet image. 💡 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

ChainIDE's tweet image. 💡 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

abbaeth_'s tweet image. 👨‍💻 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


02、Modifier 的使用 #SolidityTips

kfeacc's tweet image. 02、Modifier 的使用
#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

EthereumRemix's tweet image. 🎧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

01、数组在 solidity 中的使用: #SolidityTips

kfeacc's tweet image. 01、数组在 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

ChainIDE's tweet image. 💡 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

firatstory's tweet image. 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

viktoronweb3's tweet image. 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

vanjregautham1's tweet image. 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

nanexcool's tweet image. 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

realtauseed's tweet image. 🚀 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

Web3Together's tweet image. 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

Saifrehman1928's tweet image. 🤔 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.

Jamiescript's tweet image. #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

abbaeth_'s tweet image. 👨‍💻 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

KumandosX's tweet image. 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

MykeReckon's tweet image. 🧵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

ChainIDE's tweet image. 💡 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

Jamiescript's tweet image. 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

Jamiescript's tweet image. #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

james_bachini's tweet image. 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

Loading...

Something went wrong.


Something went wrong.


United States Trends