rooch-network / rooch

VApp Container with Move Language for Bitcoin ecosystem
https://rooch.network
Apache License 2.0
162 stars 85 forks source link

feat(rooch-da): enhance BitcoinInscriptionID parsing and serialization #2488

Closed popcnt1 closed 2 months ago

popcnt1 commented 2 months ago

Summary

Improve BitcoinInscriptionID parsing with better string validation and custom serialization: fix parse error :

thread 'verify-inscription' panicked at crates/rooch/src/commands/statedb/commands/inscription.rs:52:36:
called `Result::unwrap()` on an `Err` value: Error("invalid type: string \"6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0\", expected struct BitcoinInscriptionID", line: 1, column: 117)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at crates/rooch/src/commands/statedb/commands/genesis_verify.rs:255:42:
called `Result::unwrap()` on an `Err` value: Any { .. }
vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 7:42am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **rooch** | ⬜️ Ignored ([Inspect](https://vercel.com/rooch/rooch/2M2kBfpJtRWex6PWdAd3Ck3d8uy6)) | [Visit Preview](https://rooch-git-fork-popcnt1-refactor-statedbgenesis-ver-595ac2-rooch.vercel.app) | | Aug 22, 2024 7:42am |