HorizenOfficial / Sidechains-SDK

MIT License
162 stars 95 forks source link

Signature v field serialization #965

Closed i-skrypnyk closed 11 months ago

i-skrypnyk commented 11 months ago

Description

Signature v field json representation was wrong - the value should be 0 or 1

Jira Ticket

https://horizenlabs.atlassian.net/browse/SDK-1627

Changes

Added a new JsonSerializer specifically for signature.v field - it checks the type of the transaction it is part of, and if the type is legacy - v field is 27 or 28. If the type if EIP1559 - v field is 0 or 1

Checks

Additional information

paolocappelletti commented 11 months ago

please update changelog.md also