WitnessRule deserialize failed
See original GitHub issuev5.2.0 neo3 neon-core/lib/tx/components/WitnessRule
serialize() { return (this.action.toString(16).padStart(2, "0") + this.condition.serialize()); }
static deserialize(ss) { const action = parseEnum(ss.read(1), WitnessRuleAction); ... }
in deserialize, the first param ss.read(1)
will be 01 (Allow) witch was not defined in WitnessRuleAction
.
throw an error 01 not found in enum!
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Issues · CityOfZion/neon-js · GitHub
WitnessRule deserialize failed. #872 opened in 3 hours ; T5 TestNet network number missing from CONST. #871 opened 2 days ago ; str2hexstring...
Read more >JsonSerializer.Deserialize fails - Stack Overflow
Your problem is that System.Text.Json is case-sensitive by default, so "id": 9 (all lowercase) is not mapped to the Id property.
Read more >verification — Validation of objects and smart contract invokers
A Witness is a verification script executed by the virtual machine to validate the verifiable object. Validation failure prevents for example that a...
Read more >neo3.network.payloads.WitnessScope Example - Program Talk
GLOBAL: raise ValueError("Deserialization error - invalid scope. GLOBAL scope not allowed with other scope types") if payloads.WitnessScope.
Read more >Deserialization Failed | Avalara Developer
The InnerException message was 'There was an error deserializing the object of type EZGeoSaaS.InputAddress. The value '' cannot be parsed as ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@xie-yue fyi; https://www.npmjs.com/package/@cityofzion/neon-js/v/5.2.1
@xie-yue see the PR ☝️ Note: a new release might not happen until after the weekend. Waiting for the maintainer approval on the PR