solidity
wkyleg.eth pfp

@wkyleg

https://x.com/wkylegdoteth/status/2030366623819858382
0 reply
0 recast
0 reaction

James McComish pfp

@jamco.eth

TIL* Polygon POS (and their testnet attempted here) only support up to paris evm version... so still no PUSH0 or compatibility with solidity >= 0.8.20 any good place to get a breakdown of chains and their latest version? L2 Beat didn't show this * or at least re-learned, was more aware of this before but haven't run into it in a long time
1 reply
0 recast
2 reactions

Josh | The Blockchain Socialist pfp

@tbsocialist

Introducing Gas Killer: Super Scaling Ethereum Computation Reach out through the form in the article if you'd like to try testing it out!
1 reply
1 recast
7 reactions

Rosario Borgesi pfp

@rosarioborgesi

⚡ abi.encode vs abi.encodePacked in Solidity Both encode data, but there’s a key difference: 🔹abi.encode → adds padding (less gas efficient) 🔹abi.encodePacked → no padding (more compact, cheaper in gas) ⚡ For gas efficiency → prefer abi.encodePacked 🔎 For strict decoding → use abi.encode Example 👇
0 reply
0 recast
3 reactions

Rosario Borgesi pfp

@rosarioborgesi

❌ In Solidity, you cannot use == to compare two strings. Strings are complex types (dynamic byte arrays), so == won’t work like it does with primitives. ✅ The correct way is to compare their hashes 👇
1 reply
1 recast
5 reactions

Rosario Borgesi pfp

@rosarioborgesi

🚀 Using Foundry’s cast send to call smart contracts right from the CLI For the @CyfrinUpdraft Foundry Fundamentals Section 1 NFTs I had to call: function solveChallenge(string yourFavoriteIceCream, string yourTwitterHandle) on contract 0x6c4791c3a9E9Bc5449045872Bd1b602d6385E3E1 (Sepolia). Here’s the cast send command I used 👇
0 reply
0 recast
3 reactions

Rosario Borgesi pfp

@rosarioborgesi

Day 24 of Foundry Fundamentals 🚀 with @cyfrin Updraft ✅ Deploy the Lottery on the Testnet pt.1 💡 Pro tip: Always test locally on Anvil before testing on a testnet
0 reply
0 recast
1 reaction

kompreni 🦉 pfp

@kompreni

Uniswap LP math strikes again ☠️ I've been writing some LP-creation libraries for farstore. In the end, the only working solution I've come to is to *binary search* the tick ranges onchain with a bunch of fake/test pairs. The saving grace is cheap gas. This never would have worked as a "solution" on ETH mainnet.
2 replies
1 recast
20 reactions

Hoot 🎩 pfp

@owl

Important rule from solhint ☝️
0 reply
0 recast
3 reactions

apoorv.eth pfp

@apoorvlathey

Solady contracts are 7702 ready 👀 If you decide to change the delegation address for EOA, the storage state isn't cleared So if you are not careful, then there'll be slot conflicts!
1 reply
0 recast
2 reactions

nicholas 🧨 pfp

@nicholas

Contract for Project 2 v0.0.4 revised and deployed to testnet last night. Time to lock in and revise @crowdfund (Project 1) contract. v0.1.0 deploying very soon.
1 reply
0 recast
1 reaction

Kazani pfp

@kazani

OpenZeppelin Solidity Contracts v5.3 is here 🧑‍💻 This release introduces new token standards and governance improvements, along with new smart account and crosschain capabilities through the Community Contracts Library. Here's what's new 👇 📝 Core Contracts Highlights ERC-6909 – New multi-token standard with: • Minimal implementation • Metadata support • Supply tracking • Content URI extension Governor Improvements: • New Proposal Guardian role • Added Sequential Proposal IDs • New Super Quorum mechanism ❤️‍🩹 5.3 also packs quality-of-life upgrades such as:  • trySafeTransfer() for ERC20s (no more surprise reverts) • clear() for EnumerableSet and EnumerableMap • MerkleTree.update() for dynamic leaf management • 512-bit and saturating math operations (add512, mul512, etc)
1 reply
0 recast
5 reactions

James McComish pfp

@jamco.eth

anyone using a solidity extension in cursor? i can't get any (juan blanco, nomic, or solidity extended) to highlight errors. i've had this happen before, but restarting the extension would fix it for a while until it happened again. now it's just not working at all.
0 reply
0 recast
0 reaction

⟠ ichristwin〔▸‿◂〕 pfp

@ichristwin.eth

😂 what in the footgun is that! ...why would the compiler allow this?? 🙂
2 replies
0 recast
2 reactions

Devin Conley pfp

@dcon.eth

wbtc has entered the chat
0 reply
0 recast
4 reactions