Skip to content

Commit

Permalink
Merge pull request #29 from zenon-network/bugfix/rpc-accountblock
Browse files Browse the repository at this point in the history
[rpc] Fix AccountBlock UnmarshalJSON
  • Loading branch information
georgezgeorgez authored Oct 10, 2023
2 parents 6c831da + 39ec1da commit 3613473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/api/ledger_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ func (block *AccountBlock) UnmarshalJSON(data []byte) error {
}

block.AccountBlock = *aux.FromNomMarshalJson()
if block.TokenInfo != nil {
if aux.TokenInfo != nil {
block.TokenInfo = aux.TokenInfo.FromTokenMarshal()
}
block.ConfirmationDetail = aux.ConfirmationDetail
if block.PairedAccountBlock != nil {
if aux.PairedAccountBlock != nil {
block.PairedAccountBlock = aux.PairedAccountBlock.FromApiMarshalJson()
}
return nil
Expand Down

0 comments on commit 3613473

Please sign in to comment.