Skip to content

Fix receipt rlp#247

Merged
curryxbo merged 2 commits intomainfrom
fixReceiptRlp
Nov 19, 2025
Merged

Fix receipt rlp#247
curryxbo merged 2 commits intomainfrom
fixReceiptRlp

Conversation

@curryxbo
Copy link
Copy Markdown
Contributor

@curryxbo curryxbo commented Nov 18, 2025

1. Purpose or design rationale of this PR

...

2. PR title

Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

  • build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
  • ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
  • docs: Documentation-only changes
  • feat: A new feature
  • fix: A bug fix
  • perf: A code change that improves performance
  • refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
  • test: Adding missing tests or correcting existing tests

3. Deployment tag versioning

Has the version in params/version.go been updated?

  • This PR doesn't involve a new deployment, git tag, docker image tag, and it doesn't affect traces
  • Yes

4. Breaking change label

Does this PR have the breaking-change label?

  • This PR is not a breaking change
  • Yes

Summary by CodeRabbit

  • Chores
    • Receipt storage extended to persist additional fee metadata and remain backward-compatible with older encodings.
  • Tests
    • Added coverage for new and legacy receipt encoding/decoding to ensure correct migration and interoperability.
  • Bug Fixes
    • Clarified token conversion error messages and added a validation log for invalid token scale.

@curryxbo curryxbo requested a review from a team as a code owner November 18, 2025 09:12
@curryxbo curryxbo requested review from tomatoishealthy and removed request for a team November 18, 2025 09:12
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Nov 18, 2025

Walkthrough

Adds v7 and v6 stored-receipt encodings/decoders, extends stored receipt storage with four optional fee fields, updates legacy decoding tests, and adjusts token-fee validation messages plus a small token-scale validation log in fee rate retrieval.

Changes

Cohort / File(s) Summary
Stored receipt struct
core/rawdb/accessors_chain.go
Added optional fee-related fields to storedReceiptRLP: FeeTokenID *uint16, FeeRate *big.Int, TokenScale *big.Int, FeeLimit *big.Int.
Decoding formats & logic
core/types/receipt.go
Added v7StoredReceiptRLP (L1Fee + AltFee fields) and v6StoredReceiptRLP (L1Fee only); implemented decodeV7StoredReceiptRLP and decodeV6StoredReceiptRLP; updated ReceiptForStorage.DecodeRLP to try v7 → v6 → v3/v4/v5 and to populate/reset Bloom, L1Fee, and AltFee fields.
Tests: legacy decoding
core/types/receipt_test.go
Added "V7StoredReceiptRLP" and "V6StoredReceiptRLP" cases and encoders encodeAsV7StoredReceiptRLP / encodeAsV6StoredReceiptRLP; preserved existing v3/v4/v5 tests.
Token fee validation messages
core/types/token_fee.go
Corrected panic/error messages to match parameters: nil/<=0 checks now report "invalid token rate" vs "invalid token scale" appropriately; no logic changes.
Fee rate retrieval logging
rollup/fees/rate.go
Added an error log when retrieved token scale is nil or zero; otherwise existing rate retrieval behavior unchanged.

Sequence Diagram(s)

sequenceDiagram
  participant Caller as ReceiptForStorage.DecodeRLP
  participant v7 as decodeV7StoredReceiptRLP
  participant v6 as decodeV6StoredReceiptRLP
  participant legacy as decodeV3/4/5

  Caller->>v7: attempt decode v7 format
  alt v7 success
    v7-->>Caller: populate Status, CumulativeGasUsed, Logs, Bloom, L1Fee, AltFee
  else v7 fail
    Caller->>v6: attempt decode v6 format
    alt v6 success
      v6-->>Caller: populate Status, CumulativeGasUsed, Logs, Bloom, L1Fee
    else v6 fail
      Caller->>legacy: attempt decode v3/v4/v5 formats
      legacy-->>Caller: populate legacy fields (no L1Fee/AltFee)
    end
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Review decode order and nil-handling for pointer numeric fields (*uint16, *big.Int).
  • Verify RLP encoders/decoders in tests correctly exercise presence/absence of fee fields.
  • Check token-fee panic messages and the new log in rollup/fees/rate.go for appropriate context.

Possibly related PRs

  • Implement alt token fee #205 — Adds Alt-fee fields (FeeTokenID, FeeRate, TokenScale, FeeLimit) to receipt storage/decoding (strongly related).

Suggested reviewers

  • FletcherMan

Poem

🐰 I hopped through RLP fields bright and new,
V7 and V6 snug in my view,
Fees tucked in token, rate, and limit,
Old formats still find refuge in it,
A carrot-cheer for tests passing too. 🥕

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Title check ❓ Inconclusive The title 'Fix receipt rlp' is vague and lacks specificity about what aspect of receipt RLP is being fixed, making it unclear what the primary change accomplishes. Consider a more descriptive title that specifies the nature of the fix, such as 'Add v6/v7 receipt RLP encoding support for fee metadata' or 'Support alternative fee fields in receipt storage encoding.'
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fixReceiptRlp

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.5.0)

Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
core/types/receipt.go (1)

340-362: Update comment to document v6 format in decoding order.

The comment on lines 347-348 should be updated to mention the v6 format, as it's now part of the decoding fallback chain. The decoding logic itself is correct.

Apply this diff to update the comment:

 	// Try decoding from the newest format for future proofness, then the older one
-	// for old nodes that just upgraded. V4 was an intermediate unreleased format so
-	// we do need to decode it, but it's not common (try last).
+	// for old nodes that just upgraded. Try v6 next for compatibility with data
+	// written before alt fee fields were added. V4 was an intermediate unreleased
+	// format so we do need to decode it, but it's not common (try last).
core/types/receipt_test.go (1)

211-222: LGTM - v6 encoding function correctly implemented.

The encoding function correctly creates v6StoredReceiptRLP with L1Fee but without alt fee fields, matching the v6 format definition.

Note: The test receipt doesn't set L1Fee (it remains nil), so the test validates nil value round-tripping. Consider adding a test case with non-nil L1Fee to ensure it's preserved correctly, though the current coverage is acceptable.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5fc4e6d and 5be7250.

📒 Files selected for processing (3)
  • core/rawdb/accessors_chain.go (1 hunks)
  • core/types/receipt.go (3 hunks)
  • core/types/receipt_test.go (2 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
core/types/receipt.go (4)
core/types/log.go (2)
  • LogForStorage (103-103)
  • Log (31-56)
rlp/decode.go (1)
  • DecodeBytes (92-106)
core/types/gen_receipt_json.go (2)
  • Receipt (18-40)
  • Receipt (68-90)
core/types/bloom9.go (1)
  • CreateBloom (104-116)
core/types/receipt_test.go (2)
core/types/receipt.go (1)
  • Receipt (52-86)
core/types/log.go (1)
  • LogForStorage (103-103)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (go)
🔇 Additional comments (4)
core/types/receipt.go (2)

122-129: LGTM - v6 intermediate storage format correctly defined.

The v6StoredReceiptRLP struct appropriately serves as an intermediate migration format between v5 (no L1Fee) and the current format (with L1Fee and alt fee fields). The comment clearly documents its purpose.


387-404: LGTM - v6 decoding function correctly implemented.

The decoding logic correctly populates receipt fields from the v6 storage format and regenerates the Bloom filter. The alt fee fields remain nil as expected for this intermediate format, consistent with how other legacy decoders handle newer fields.

core/types/receipt_test.go (1)

120-123: LGTM - Test coverage for v6 format added.

The V6StoredReceiptRLP test case appropriately extends coverage to ensure the v6 storage format encodes and decodes correctly, consistent with existing test patterns.

core/rawdb/accessors_chain.go (1)

617-626: LGTM - Storage format extended consistently.

The storedReceiptRLP struct correctly adds the alt fee fields (FeeTokenID, FeeRate, TokenScale, FeeLimit) and matches the definition in core/types/receipt.go. The intentional duplication avoids import cycles while maintaining consistency between the two definitions.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5be7250 and 3c544e2.

📒 Files selected for processing (2)
  • core/types/receipt.go (3 hunks)
  • core/types/receipt_test.go (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • core/types/receipt_test.go
🧰 Additional context used
🧬 Code graph analysis (1)
core/types/receipt.go (3)
core/types/log.go (2)
  • LogForStorage (103-103)
  • Log (31-56)
rlp/decode.go (1)
  • DecodeBytes (92-106)
core/types/bloom9.go (1)
  • CreateBloom (104-116)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
core/types/receipt.go (1)

136-143: v6 format implementation looks correct.

The v6 storage format and its decode function correctly handle backwards compatibility:

  • v6 includes L1Fee but excludes AltFee fields, representing a format that predates the AltFee feature
  • decodeV6StoredReceiptRLP properly populates status, gas, logs, Bloom, and L1Fee
  • AltFee fields (FeeTokenID, FeeRate, TokenScale, FeeLimit) remain unset (nil), which is correct for receipts stored before AltFee was introduced
  • Bloom is correctly recalculated via CreateBloom

This pattern is consistent with how other legacy formats (v5, v4, v3) handle fields that didn't exist in their respective versions.

Also applies to: 427-444

Comment thread core/types/receipt.go
Comment on lines +122 to +134
// v7StoredReceiptRLP is the storage encoding of a receipt used in database version 7.
// This version was introduced when AltFee feature was added (2024-11).
// It includes L1Fee and all AltFee fields (FeeTokenID, FeeRate, TokenScale, FeeLimit).
type v7StoredReceiptRLP struct {
PostStateOrStatus []byte
CumulativeGasUsed uint64
Logs []*LogForStorage
L1Fee *big.Int
FeeTokenID *uint16
FeeRate *big.Int
TokenScale *big.Int
FeeLimit *big.Int
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Remove redundant v7StoredReceiptRLP or clarify its purpose.

The v7StoredReceiptRLP struct is identical to storedReceiptRLP (lines 111-120). Both have the exact same fields: PostStateOrStatus, CumulativeGasUsed, Logs, L1Fee, and all four AltFee fields (FeeTokenID, FeeRate, TokenScale, FeeLimit).

This creates unnecessary code duplication and confusion. If v7 is meant to represent the current storage format, then storedReceiptRLP should be removed in favor of v7. If storedReceiptRLP is the current format and v7 represents an older version, then v7 should have different (fewer) fields.

Consider one of these approaches:

  1. If v7 is the current format, remove storedReceiptRLP and use v7 throughout
  2. If storedReceiptRLP is current and v7 is historical, ensure v7 reflects the actual historical schema (likely without all AltFee fields)
  3. If they're intentionally identical, consolidate them into a single type
🤖 Prompt for AI Agents
In core/types/receipt.go around lines 122-134 there is a redundant type
v7StoredReceiptRLP that is identical to storedReceiptRLP; remove the duplication
by consolidating to a single canonical type and update all references and
serialization/deserialization code to use that single type (or, if v7 was
intended to be a historical schema, change v7StoredReceiptRLP to match the
actual historical fields and update migration/decoding logic accordingly);
ensure imports, type assertions, RLP encoding/decoding switch cases, and unit
tests are updated to reference the chosen type so compilation and
backward-compatibility paths remain correct.

Comment thread core/types/receipt.go
Comment on lines +366 to +371
if err := decodeV7StoredReceiptRLP(r, blob); err == nil {
return nil
}
if err := decodeV6StoredReceiptRLP(r, blob); err == nil {
return nil
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

The v7 decode path is unreachable.

Since storedReceiptRLP and v7StoredReceiptRLP are identical (same fields in same order), and decodeStoredReceiptRLP is attempted first (line 363), the call to decodeV7StoredReceiptRLP on line 366 will never succeed. Any RLP blob that would decode as v7 will have already decoded successfully as storedReceiptRLP.

This creates unreachable code that will never execute in production.

After resolving the struct redundancy issue, ensure the decode order reflects the actual format evolution. The newest format should be tried first, followed by progressively older formats (v6, v5, v4, v3).

🤖 Prompt for AI Agents
In core/types/receipt.go around lines 366 to 371, the v7 decode path is
unreachable because decodeStoredReceiptRLP (which uses the same struct as v7) is
attempted first; fix by ensuring the decode order tries the newest format first
(attempt decodeV7StoredReceiptRLP before decodeStoredReceiptRLP) and/or remove
the redundant identical struct definitions so that v7 is distinct; reorder the
decode attempts to try v7, then v6, v5, v4, v3 (newest-to-oldest) so newer
formats are matched first.

Comment thread core/types/receipt.go
Comment on lines +404 to +425
func decodeV7StoredReceiptRLP(r *ReceiptForStorage, blob []byte) error {
var stored v7StoredReceiptRLP
if err := rlp.DecodeBytes(blob, &stored); err != nil {
return err
}
if err := (*Receipt)(r).setStatus(stored.PostStateOrStatus); err != nil {
return err
}
r.CumulativeGasUsed = stored.CumulativeGasUsed
r.Logs = make([]*Log, len(stored.Logs))
for i, log := range stored.Logs {
r.Logs[i] = (*Log)(log)
}
r.Bloom = CreateBloom(Receipts{(*Receipt)(r)})
r.L1Fee = stored.L1Fee
r.FeeTokenID = stored.FeeTokenID
r.FeeRate = stored.FeeRate
r.TokenScale = stored.TokenScale
r.FeeLimit = stored.FeeLimit

return nil
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Duplicated decode logic.

The decodeV7StoredReceiptRLP function is nearly identical to decodeStoredReceiptRLP (lines 381-402). Both:

  • Decode the same fields in the same order
  • Set status via setStatus
  • Convert LogForStorage to Log
  • Recalculate Bloom via CreateBloom
  • Populate L1Fee and all AltFee fields

This duplication increases maintenance burden. If the structs are truly identical (as they currently are), only one decode function is needed.

Kukoomomo
Kukoomomo previously approved these changes Nov 19, 2025
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
rollup/fees/rate.go (1)

24-33: TokenRate returns nil error for invalid address/price and still panics on invalid scale.

On Line 24–33, when info.TokenAddress is zero or rate is nil/zero, you log an error but return (nil, nil, err) where err is still nil from GetTokenInfoFromStorage. Callers see err == nil and proceed; EthToAlt/AltToETH then panic in types.EthToAlt/types.AltToEth due to nil/zero rate. Similarly, the new invalid-scale log on Line 41–43 does not return an error, so invalid-scale cases also rely on a downstream panic.

This makes TokenRate’s contract misleading and pushes configuration/price issues into panics instead of explicit errors.

Consider tightening TokenRate’s contract so all three invalid cases (address, price, scale) return a non‑nil error and never rely on panics:

 func TokenRate(state StateDB, tokenID uint16) (*big.Int, *big.Int, error) {
@@
-	info, rate, err := GetTokenInfoFromStorage(state, TokenRegistryAddress, tokenID)
+	info, rate, err := GetTokenInfoFromStorage(state, TokenRegistryAddress, tokenID)
 	if err != nil {
 		log.Error("Failed to get token info from storage", "tokenID", tokenID, "error", err)
 		return nil, nil, err
 	}
 
 	// If token address is zero, this is not a valid token
 	if info.TokenAddress == (common.Address{}) {
-		log.Error("Invalid token address", "tokenID", tokenID)
-		return nil, nil, err
+		err = errors.New("invalid token address")
+		log.Error("Invalid token address", "tokenID", tokenID, "error", err)
+		return nil, nil, err
 	}
 
 	// If price is nil or zero, this token doesn't have a valid price
 	if rate == nil || rate.Sign() == 0 {
-		log.Error("Invalid token price", "tokenID", tokenID, "tokenAddr", info.TokenAddress.Hex())
-		return nil, nil, err
+		err = errors.New("invalid token price")
+		log.Error("Invalid token price", "tokenID", tokenID, "tokenAddr", info.TokenAddress.Hex(), "error", err)
+		return nil, nil, err
 	}
@@
 	// Get scale from token info
 	scale, err := GetTokenScaleByIDWithState(state, tokenID)
 	if err != nil {
 		log.Error("Failed to get token scale", "tokenID", tokenID, "error", err)
 		return nil, nil, err
 	}
-	if scale == nil || scale.Sign() == 0 {
-		log.Error("Invalid token scale", "tokenID", tokenID, "tokenAddr", info.TokenAddress.Hex())
-	}
-
-	return rate, scale, err
+	if scale == nil || scale.Sign() == 0 {
+		err = errors.New("invalid token scale")
+		log.Error("Invalid token scale", "tokenID", tokenID, "tokenAddr", info.TokenAddress.Hex(), "error", err)
+		return nil, nil, err
+	}
+
+	return rate, scale, nil
 }

With this, EthToAlt/AltToETH will consistently surface misconfigurations as regular errors instead of panics, and callers of TokenRate alone also get a clear error signal.

Also applies to: 41-43

♻️ Duplicate comments (2)
core/types/receipt.go (2)

111-120: v7/v6 structs: versioning clarified but v7 remains a duplicate of storedReceiptRLP.

storedReceiptRLP and v7StoredReceiptRLP currently have identical fields; the new comments help explain that v7 is the DB‑versioned schema, but as long as the layouts are the same, v7 is redundant and risks divergence later.

Consider one of:

  • Treat storedReceiptRLP as the current version (e.g. v8) and change its comment/name accordingly, making it clear that v7 is historical.
  • Or, drop v7StoredReceiptRLP for now and re‑introduce it only once storedReceiptRLP actually diverges (e.g. on the next schema change).
  • If you prefer to keep both for future‑proofing, add an explicit note that they are intentionally identical today and that storedReceiptRLP is intended to evolve while v7StoredReceiptRLP is frozen to the 2024‑11 schema.

Also applies to: 122-144


363-379: decodeV7 path is effectively dead today and decode logic is duplicated across versions.

ReceiptForStorage.DecodeRLP first calls decodeStoredReceiptRLP, then decodeV7StoredReceiptRLP, then decodeV6StoredReceiptRLP. Because storedReceiptRLP and v7StoredReceiptRLP have identical layouts, any blob that would decode as v7 will already decode successfully via decodeStoredReceiptRLP, so decodeV7StoredReceiptRLP is currently unreachable. The body of decodeV7StoredReceiptRLP also duplicates decodeStoredReceiptRLP almost line‑for‑line, and decodeV6StoredReceiptRLP duplicates most of that logic again.

To reduce confusion and maintenance overhead, consider:

  • Either removing decodeV7StoredReceiptRLP until storedReceiptRLP diverges, or
  • Consolidating the shared “apply decoded stored receipt to ReceiptForStorage” logic into a helper used by decodeStoredReceiptRLP, decodeV7StoredReceiptRLP, and decodeV6StoredReceiptRLP. For example, a helper that takes PostStateOrStatus, CumulativeGasUsed, Logs, and optional fee fields and fills r plus recomputes Bloom.

This keeps the versioned decode paths explicit while avoiding three copies of the same assignment sequence.

Also applies to: 381-402, 404-425, 427-444

🧹 Nitpick comments (1)
rollup/fees/rate.go (1)

48-54: Fix typo in tokenSacle variable name.

tokenSacle is misspelled in both EthToAlt and AltToETH; renaming it to tokenScale improves readability and reduces future confusion.

 func EthToAlt(state StateDB, tokenID uint16, amount *big.Int) (*big.Int, error) {
-	rate, tokenSacle, err := TokenRate(state, tokenID)
+	rate, tokenScale, err := TokenRate(state, tokenID)
@@
-	return types.EthToAlt(amount, rate, tokenSacle), nil
+	return types.EthToAlt(amount, rate, tokenScale), nil
 }
 
 func AltToETH(state StateDB, tokenID uint16, amount *big.Int) (*big.Int, error) {
-	rate, tokenSacle, err := TokenRate(state, tokenID)
+	rate, tokenScale, err := TokenRate(state, tokenID)
@@
-	return types.AltToEth(amount, rate, tokenSacle), nil
+	return types.AltToEth(amount, rate, tokenScale), nil
 }

Also applies to: 56-62

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3c544e2 and 9db0cc1.

📒 Files selected for processing (4)
  • core/types/receipt.go (3 hunks)
  • core/types/receipt_test.go (2 hunks)
  • core/types/token_fee.go (2 hunks)
  • rollup/fees/rate.go (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • core/types/receipt_test.go
🧰 Additional context used
🧬 Code graph analysis (1)
core/types/receipt.go (3)
core/types/log.go (2)
  • LogForStorage (103-103)
  • Log (31-56)
rlp/decode.go (1)
  • DecodeBytes (92-106)
core/types/bloom9.go (1)
  • CreateBloom (104-116)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (go)
🔇 Additional comments (1)
core/types/token_fee.go (1)

50-55: Panic messages now correctly match the validated parameter (LGTM).

The panics for rate vs. tokenScale are now labeled correctly, with no behavioral change to the validation logic.

Also applies to: 67-72

@curryxbo curryxbo merged commit d085f8c into main Nov 19, 2025
8 checks passed
@curryxbo curryxbo deleted the fixReceiptRlp branch November 19, 2025 08:05
This was referenced Nov 20, 2025
This was referenced Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants