question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WitnessRule deserialize failed

See original GitHub issue

v5.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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ixjecommented, Nov 4, 2022

@xie-yue see the PR ☝️ Note: a new release might not happen until after the weekend. Waiting for the maintainer approval on the PR

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found