fa
Feedback

فریب کلاهبرداران را نخورید! تل‌متریو این کانال‌ها را شناسایی و برچسب‌گذاری می‌کند 👉 برای مشاهده برچسب، اشتراک تهیه کنید

Solidity Treasures

Solidity Treasures

رفتن به کانال در Telegram

Make better decisions before you ship on Ethereum. Exploit mechanics, upgrade decisions, and tests worth adding. Four editorial slots a week; useful stories only. English. Start with the pinned guide. Suggestions: @hirama

نمایش بیشتر
4 169
مشترکین
+124 ساعت
-117 روز
-5730 روز

در حال بارگذاری داده‌ها

جذب مشترکین
نوامبر '26
نوامبر '26
+8
در 1 کانال‌ها
اکتبر '26
+8
در 1 کانال‌ها
Get PRO
سپتامبر '260
در 0 کانال‌ها
Get PRO
اوت '260
در 0 کانال‌ها
Get PRO
ژوئیه '260
در 0 کانال‌ها
Get PRO
ژوئن '260
در 0 کانال‌ها
Get PRO
مه '260
در 0 کانال‌ها
Get PRO
آوریل '260
در 0 کانال‌ها
Get PRO
مارس '260
در 0 کانال‌ها
Get PRO
فوریه '260
در 0 کانال‌ها
Get PRO
ژانویه '260
در 0 کانال‌ها
Get PRO
دسامبر '250
در 0 کانال‌ها
Get PRO
نوامبر '250
در 0 کانال‌ها
Get PRO
اکتبر '25
+3
در 0 کانال‌ها
Get PRO
سپتامبر '25
+31
در 0 کانال‌ها
Get PRO
اوت '25
+13
در 0 کانال‌ها
Get PRO
ژوئیه '25
+23
در 0 کانال‌ها
Get PRO
ژوئن '25
+38
در 0 کانال‌ها
Get PRO
مه '25
+32
در 0 کانال‌ها
Get PRO
آوریل '25
+21
در 1 کانال‌ها
Get PRO
مارس '25
+32
در 1 کانال‌ها
Get PRO
فوریه '25
+43
در 0 کانال‌ها
Get PRO
ژانویه '25
+69
در 0 کانال‌ها
Get PRO
دسامبر '24
+102
در 0 کانال‌ها
Get PRO
نوامبر '24
+116
در 0 کانال‌ها
Get PRO
اکتبر '24
+146
در 0 کانال‌ها
Get PRO
سپتامبر '24
+182
در 0 کانال‌ها
Get PRO
اوت '24
+74
در 0 کانال‌ها
Get PRO
ژوئیه '24
+85
در 0 کانال‌ها
Get PRO
ژوئن '24
+93
در 0 کانال‌ها
Get PRO
مه '24
+133
در 1 کانال‌ها
Get PRO
آوریل '24
+127
در 0 کانال‌ها
Get PRO
مارس '24
+208
در 0 کانال‌ها
Get PRO
فوریه '24
+162
در 0 کانال‌ها
Get PRO
ژانویه '24
+194
در 1 کانال‌ها
Get PRO
دسامبر '23
+188
در 1 کانال‌ها
Get PRO
نوامبر '23
+526
در 0 کانال‌ها
Get PRO
اکتبر '23
+202
در 1 کانال‌ها
Get PRO
سپتامبر '23
+291
در 0 کانال‌ها
Get PRO
اوت '23
+248
در 0 کانال‌ها
Get PRO
ژوئیه '23
+837
در 0 کانال‌ها
Get PRO
ژوئن '23
+1 200
در 0 کانال‌ها
Get PRO
مه '23
+371
در 0 کانال‌ها
Get PRO
آوریل '23
+83
در 0 کانال‌ها
Get PRO
مارس '23
+61
در 0 کانال‌ها
Get PRO
فوریه '23
+45
در 0 کانال‌ها
Get PRO
ژانویه '23
+71
در 0 کانال‌ها
Get PRO
دسامبر '22
+44
در 0 کانال‌ها
Get PRO
نوامبر '22
+77
در 0 کانال‌ها
Get PRO
اکتبر '22
+71
در 0 کانال‌ها
Get PRO
سپتامبر '22
+73
در 0 کانال‌ها
Get PRO
اوت '22
+166
در 0 کانال‌ها
Get PRO
ژوئیه '22
+155
در 0 کانال‌ها
Get PRO
ژوئن '22
+121
در 0 کانال‌ها
Get PRO
مه '22
+118
در 0 کانال‌ها
Get PRO
آوریل '22
+124
در 0 کانال‌ها
Get PRO
مارس '22
+145
در 0 کانال‌ها
Get PRO
فوریه '22
+151
در 0 کانال‌ها
Get PRO
ژانویه '22
+140
در 0 کانال‌ها
Get PRO
دسامبر '21
+153
در 0 کانال‌ها
Get PRO
نوامبر '21
+65
در 0 کانال‌ها
Get PRO
اکتبر '21
+74
در 0 کانال‌ها
Get PRO
سپتامبر '21
+46
در 0 کانال‌ها
Get PRO
اوت '21
+110
در 0 کانال‌ها
Get PRO
ژوئیه '21
+226
در 0 کانال‌ها
تاریخ
رشد مشترکین
اشارات
کانال‌ها
30 نوامبر0
29 نوامبر+1
28 نوامبر0
27 نوامبر0
26 نوامبر0
25 نوامبر+1
24 نوامبر0
23 نوامبر0
22 نوامبر0
21 نوامبر0
20 نوامبر0
19 نوامبر0
18 نوامبر0
17 نوامبر+1
16 نوامبر0
15 نوامبر0
14 نوامبر0
13 نوامبر+1
12 نوامبر+1
11 نوامبر0
10 نوامبر0
09 نوامبر0
08 نوامبر0
07 نوامبر0
06 نوامبر0
05 نوامبر+1
04 نوامبر0
03 نوامبر+1
02 نوامبر0
01 نوامبر+1
پست‌های کانال
Do not make AI-only review the release gate for protocol accounting. Dedaub tested agents blind against eight past audits. On six Solidity projects containing 22 known critical, high or medium bugs, the median setup found 45%; counting a bug caught by any agent raised coverage to 73%. Across all eight projects, including Move and TON, missed medium-severity bugs tended to involve business logic, accounting and protocol specifications. Agents also found 16 serious bugs the original auditors missed. The review decision: use agents to find additional issues, but retain human review of accounting and specification assumptions. This small study compared separate AI and human reviews of older engagements; it did not measure a combined workflow or establish a general detection rate. Review Room Dedaub’s audit experiment @soliditypedia
29 نوامبر, 13:30

2
Recheck constructor-revert tests: Forge could pass before finishing the test body. Foundry v1.10.1 fixes a case where, with dynamic linking, a test expecting a constructor revert could pass early. The corrected behavior runs the rest of the body, so previously passing tests can now fail. Before relying on those results, review tests that combine dynamic linking, new, and expectRevert. Rerun them on v1.10.1 and check the assertions after the expected revert. A green result from the affected behavior did not establish that those assertions passed; investigate newly exposed failures rather than removing the checks. Before You Ship Foundry v1.10.1 release notes @soliditypedia
156
3
Preserving gas forwarding would not preserve gas reimbursement under EIP-8487. The proposal splits gas into two counters initialized from the transaction gas limit. Execution credits retain the legacy schedule for GAS, calls and creation; billing credits use a new schedule to determine fees. Exhausting billing aborts the whole transaction, even with execution credits left. This would let opcode prices change without changing the gas contracts see. But a discussion reply flags a mismatch: ERC-4337 EntryPoint and Safe reimburse from gasleft() deltas. After an upward repricing, those deltas could underpay bundlers or relayers. A per-call execution limit would not cap billing either. This is a proposal, with schedules and accounting still open. This Changes the Design Proposal and discussion @soliditypedia
179
4
Check the bundled ABI before debugging ERC-721 enumeration. Viem’s erc721Abi incorrectly declared tokenOfOwnerByIndex as a tokenByIndex overload. Version 2.58.6 fixes that declaration and adds the ERC-165 supportsInterface function required by ERC-721. If your integration uses this ABI, inspect the version you actually ship: verify that tokenOfOwnerByIndex has its own entry rather than appearing under tokenByIndex. Upgrade to the fixed release if affected. For a copied ABI, check the entries directly rather than assuming a dependency upgrade updates the copy. Before You Ship Viem 2.58.6 release notes @soliditypedia
182
5
Can your invariant handler assume every run starts from setUp? Not with Foundry 1.10.0’s defaults. Snapshot fuzzing is now enabled by default: a run can start from a state reached by an earlier run, rather than from setUp. Handlers and afterInvariant hooks that depend on a fresh state per run can fail. The review decision: reject an unconditional fresh-state assumption in a suite using this default. Inspect handlers and hooks for that dependency before treating a new failure as a protocol bug. The release explicitly identifies this as a compatibility risk; a failing campaign alone does not distinguish a broken invariant from a broken test assumption. Review Room Foundry v1.10.0 release notes @soliditypedia
187
6
Copying a nested recursive struct over its parent can corrupt storage. Solidity 0.8.39 fixes this code-generation bug: the destination is a recursive struct in storage, and the source is a struct nested inside it. The fix adds a runtime overlap check when copying recursive structs between storage locations and takes a memory snapshot of the source when the target contains it. Before shipping, review storage-to-storage assignments involving recursive structs. Check whether the source can be nested inside the destination; that is the overlap condition identified in the release. If it can, rebuild with 0.8.39 before deployment. The release notes do not specify the affected version range. Before You Ship Solidity 0.8.39 release notes @soliditypedia
220
7
Under proposed split gas accounting, gasleft() deltas would miss part of a call’s cost. EIP-8037 separates execution gas from state gas, with a reservoir that GAS does not report. That would make sub-call metering, including ERC-4337 EntryPoint accounting, undercount costs paid from the reservoir. EIP-8455 proposes RESERVOIR to expose that missing budget. Metering must compare GAS + RESERVOIR before and after a call: cross-frame refills can move gas between the pools, so either counter alone can misreport consumption. This is a draft, not an available opcode. It preserves GAS for call forwarding; validation-time restrictions remain a coordination requirement for ERC-4337. This Changes the Design EIP-8455 proposal and discussion @soliditypedia
230
8
Check ID density before packing replay flags. A bitmap shares one storage word across 256 flags only when IDs land together. Hash-derived nullifiers do not provide that locality; sparse sequence numbers leave capacity unused. An Ethereum Research example packs four sessions into one word, with a 64-bit lane per session and one bit per operator. It rejects operator indices of 64 or more: a session with 70 operators does not fit. Before choosing this layout, check sequence gaps and the maximum operator count. Enforce the index bound and reject an already-set bit. Choose lane width for supported sessions, not just average occupancy; wider lanes leave fewer sessions per word. Before You Ship Replay-flag packing discussion @soliditypedia
234
9
A 1,024-call batch is not automatically valid on Reth v2.11.0. Should a simulation client size batches by call count alone? No. eth_callMany, trace_callMany, and debug_traceCallMany now allow at most 1,024 calls, but also share one --rpc.gascap budget across the request. No additional call starts more than five seconds after the first. Review both request size and the aggregate gas budget. A batch below the count limit can still hit the other constraints; previously successful requests may now fail. The five-second rule limits when another call can start, not necessarily when the whole request finishes. Review Room Reth v2.11.0 release notes @soliditypedia
241
10
Hardhat fork tests could switch away from your configured hardfork. Hardhat v3.22.0 fixes Solidity tests reverting to the default hardfork after vm.createSelectFork, vm.selectFork, or vm.rollFork, rather than keeping the configured hardfork or inline evm_version. A passing test under the wrong fork rules is not evidence for your intended target. Before relying on fork-specific results, check whether your suite uses these cheatcodes with an explicit hardfork or inline EVM version. Upgrade to v3.22.0 and rerun the affected tests before accepting their results. Amsterdam support remains experimental; the stable tool release does not make those rules final. Before You Ship Hardhat v3.22.0 release notes @soliditypedia
265
11
A wrapper can hide an out-of-gas halt behind a normal revert. For contracts that continue after failed calls, that distinction matters: sender-chosen gas can turn a retryable failure into one recorded as final. EIP-8456 proposes CALLSTATUS to expose call outcomes. A sticky flag carries exceptional halts through intermediaries, even when they return successfully or replace the failure with a revert. Callers could treat status >= 2 as non-final instead of relying on gas-left thresholds. It reports outcomes, not causes: a callee can deliberately execute INVALID, and a harmless failed probe can also set the flag. Gas-dependent reverts without a halt remain outside this protection. Prototype implementation and tests are still outstanding; this is not available EVM behavior. This Changes the Design CALLSTATUS draft @soliditypedia
274
12
A bytecode match can hide the wrong immutable oracle address. An explorer’s verified badge does not establish that a deployment runs the audited commit. Zealynx’s verification checklist highlights another trap: masking immutables for comparison also masks configuration differences. Rebuild the audited commit with the same compiler version, optimizer runs, viaIR and evmVersion. Use evm.deployedBytecode.immutableReferences to locate and zero the deployed immutable ranges for comparison, then check their actual values separately against the audited configuration. Do not dismiss metadata differences either: matching logic with a different metadata tail is not an exact source match. For a proxy, resolve the implementation before comparing code. Before You Ship Zealynx’s checklist @soliditypedia
257
13
A current slot duration cannot reconstruct arbitrary historical timestamps. EIP-8484 proposes SLOTDURATION, an opcode returning the current slot duration in milliseconds. Should a contract use that value to convert any past slot into a timestamp? No: the draft returns no duration history. In the discussion, OpenZeppelin’s ernestognw argues that anchoring on the current timestamp and slot works for slots since the last duration change. Earlier slots need history; a stored timestamp/slot observation can reveal a mismatch, but cannot locate the change. For historical accounting, reject a current-duration-only design. Historical lookup remains an open proposal question, with a cost: the execution layer would need to retain the duration schedule. Review Room EIP-8484 proposal and discussion @soliditypedia
267
14
Clearing a transient program cache does not clear token allowances. Draft ERC-8486, Flash Loan Proxy, caches a program for callback-driven execution. Reviewer Revinand flags a session-entry risk: the reference proxy accepts a new program at DEPTH_SLOT == 0 without checking the caller. If its interpreter permits arbitrary external calls, another initiator could spend leftover proxy balances or use remaining ERC-20 allowances through transferFrom. This is a conditional review concern, not a reported exploit. Before adopting this design, test with two different session initiators: can the second spend balances or approvals left by the first? Require session-start authorization, or define balance and approval restrictions for a permissionless deployment. Callback authentication alone does not answer this check. Before You Ship Draft and review @soliditypedia
290
15
Make better decisions before you ship on Ethereum. Solidity Treasures is for engineers building contracts, auditing systems, and choosing protocol designs. Each brief explains what changed, what can break, and what to check next. Start with your next task: Before an audit, study exploits by reproducing them. Choosing a design? Understand an onchain order book. Updating your tools? Assess a Foundry debugger upgrade. Expect two Before You Ship slots, one This Changes the Design, and one Review Room each week. We skip weak stories. Posts are in English, with sources and limitations. Preparing a release? Use the pre-deployment review checklist with your team. @soliditypedia
288
16
Monitor Arbitrum Inbox upgrade events, not just implementation-slot snapshots. An on-chain analysis of the October freeze describes a temporary upgrade: the Security Council’s executor swapped the Inbox implementation, delivered unsigned messages using the target address as sender, then restored the original implementation within the same L1 transaction. The EIP-1967 implementation slot was identical before and after the block. Snapshot polling would miss the override; the Inbox emitted four Upgraded events. Add event-based alerts alongside slot checks. Use this transaction as a monitoring test: an unchanged end-of-block implementation must not suppress an alert for an intervening upgrade. This was an exercise of upgrade authority, not a reported contract bug. Transaction analysis @soliditypedia
257
17
FlashProve: what an LLM proof actually verifies Anthropic released FlashProve on November 2: an open-source prototype that ties checked output tokens to committed model weights without revealing those weights. Before a PoC, check the weight commitment, integer arithmetic, greedy decoding and the 1,024-token context limit. Sampling or floating-point inference can produce outputs that differ from the computation being proved. The fast C++ verifier also lacks a formal guarantee that it matches the Lean protocol. A valid computation proof does not establish that an answer is true. This echoes Buterin's vision of moving computation offchain and verifying it cryptographically. Anthropic · Buterin @soliditypedia
237
18
FlashProve: что проверять в ZK-пруфе ответа LLM 2 ноября Anthropic выпустили FlashProve — открытый прототип проверяемого инференса. Пруф связывает проверяемые токены с заранее зафиксированными весами, не раскрывая их. Для PoC проверьте три условия: нужный commitment весов, целочисленную модель с greedy-декодированием и контекст до 1024 токенов. Ответ при sampling или float-инференсе может не совпасть с тем, что доказывается. Отдельно проверьте верификатор: у быстрого C++-кода пока нет формальной гарантии соответствия Lean-протоколу. Корректность вычисления также не гарантирует истинность ответа. Это перекликается с направлением Бутерина: выносить вычисления за пределы блокчейна и проверять их криптографически. Anthropic · Бутерин @soliditypedia
7
19
Use Foundry v1.9.0 to debug traces that exhaust memory. --debug now runs on SolDB. In the release’s 1.46M-step Aave v4 test, peak memory fell from 27.6 GiB to 0.92 GiB; the session opened in 1.13 s instead of 6.58 s. Those are workload-specific results, not a guarantee for every suite. Upgrade if debugger memory is blocking investigation, but check your trace tooling first: the built-in debugger and --debug-layout are removed. --dump now writes a SolDB bundle directory, not a JSON file, so consumers expecting the old output need updating. Foundry v1.9.0 release notes @soliditypedia
263
20
A revoked key can still authorize transactions against an old authority root. ERC-8403’s draft commits account authorities to one Merkle root. Authorization requires both leaf membership and a witness approving the transaction; membership alone is insufficient. The revocation boundary depends on which root the account accepts. Tier 1 accepts a recent root, so revoked keys remain usable until that root leaves the window. Tier 2 reads the current root from account storage, trading the cheaper validation tier for revocation effective from the next block. The author’s local demo accepts a revoked key under Tier 1 while Tier 2 rejects it. If your account requires fast revocation, choose current-root validation rather than a recent-root window. This is a draft design, not a deployed standard. Draft and demo findings @soliditypedia
277