1

Having some issues in fabricating a realistic StorageProof in substrate benchmarks. I can't use std and most examples are using std in tests via sp_state_machine.

Currently, I've hard coded the (root, proof) by calling the RelayStateSproofBuilder::default() in a test and printing the raw bytes. Was wondering if there's a simpler way.

1 Answer 1

1

Currently the test proof builder is std-only. I had the same problem when working with the pallet-parachain-system here where i use a hard-coded proof blob as well.
The actual solution would be to make the proof builder no-std, which I started working on but it went stale.

So currently there is no better way AFAIK unless you want to make the proof builder no-std.

1
  • I'd certainly like to help if there's some existing work to build upon.
    – nbaztec
    Commented Dec 22, 2022 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.