0

I have pretty simple extrinsic code which stores data to substrate storage hashmap and tries to load it after from another nested function. But result looks like nothing stored. In pseudo:

storage["key"] = 1
...
storage.get("key")  // it is None

I know that all operations of extrinsic are transactional, but... is this expected behavior, or I did something wrong?

3
  • Can you give us the full code on GitHub or so? It should be stored. Commented Nov 1, 2022 at 14:56
  • 1
    @OliverTale-Yazdi I will try to make some small example to reproduce. Give me couple of days.
    – broomrider
    Commented Nov 2, 2022 at 16:33
  • @OliverTale-Yazdi No luck with short example. Anyway, we changed the way we did it. So, if I faced this again, I will update OP post and tag you.
    – broomrider
    Commented Nov 17, 2022 at 0:05

0

Your Answer

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

Browse other questions tagged or ask your own question.