Timeline for The ensure! macro with a false condition doesn't make an extrinsic fail, why?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 21, 2022 at 15:13 | comment | added | Tbaut | yes I saw it too, at the end of the day, it means either the node-template should be upgraded to weight v2, or the pjs api should handle node-template weight correctly. | |
Oct 21, 2022 at 13:31 | comment | added | Alex Bean | @Tbaut I have found is a known issue in the PolkadotJS app code: github.com/polkadot-js/apps/issues/8259 | |
Oct 21, 2022 at 7:22 | comment | added | Alex Bean | Sorry I can experiment your issue now too. I have been testing it with substrate-node-template v0.9.29 and worked, but i can see the error testing it with substrate-node-template v0.9.3o like you. I am going to investigate what can cause the issue | |
Oct 20, 2022 at 21:37 | comment | added | Tbaut | Try the latest node-template, Bruno could replicate it. substrate.stackexchange.com/questions/5447/… | |
Oct 20, 2022 at 11:50 | comment | added | Tbaut |
While what you describe is what I expected, this is not what I see. The MinNickLength is set to ConstU32<8>; and I use setName with a name smaller than 8. Now I realized that all the system events can't be decoded by pjs/apps. All the blocks have a Unable to decode storage system.events:: createType(Vec<FrameSystemEventRecord>):: decodeU8a: failed at 0x0000000000000090e9900e0000000002… (index 0/1): Because of this, the UI can't see that the extrinsic failed. I edited the first post with a screenshot.
|
|
Oct 20, 2022 at 9:40 | history | answered | Alex Bean | CC BY-SA 4.0 |