Skip to content

fix: correct thiserror format string in JsonRpc error variant#205

Open
vicistar-star wants to merge 1 commit into
Toolbox-Lab:mainfrom
vicistar-star:feat/initialize-decode-module
Open

fix: correct thiserror format string in JsonRpc error variant#205
vicistar-star wants to merge 1 commit into
Toolbox-Lab:mainfrom
vicistar-star:feat/initialize-decode-module

Conversation

@vicistar-star
Copy link
Copy Markdown

@vicistar-star vicistar-star commented May 28, 2026

Summary

Closes #191.

Verifies and unblocks the crates/core/src/decode/ module tree so that use prism_core::decode; compiles and the module appears
in cargo doc.

Changes

  • crates/core/src/decode/ — confirmed full module structure in place:
    • mod.rs — submodule declarations + decode_transaction entry point
    • host_error.rs — error classification and category parsing
    • diagnostic.rs — diagnostic event enrichment
    • report.rs — DiagnosticReport assembly from taxonomy lookup
    • context.rs — transaction context enrichment (function, args, fees, resources)
  • crates/core/src/error.rs — fixed invalid thiserror format string in JsonRpc variant ({0.field} syntax is unsupported;
    replaced with named field syntax)

Verification

  • cargo check --package prism-core — ✅ no errors
  • cargo doc --package prism-core --no-deps — ✅ generates successfully; prism_core::decode visible in module tree

@Emrys02 Emrys02 self-requested a review May 31, 2026 10:58
@Emrys02
Copy link
Copy Markdown
Contributor

Emrys02 commented May 31, 2026

@vicistar-star fix conflict in your branch

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.

Initialize Decode Module

2 participants