Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Fix AuthAccount and VoteEntry decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanhide committed Mar 24, 2024
1 parent 646e312 commit 68f92ff
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion data/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,18 @@ func readObject(r Reader, v *reflect.Value) error {
return nil
}
return err
case "AuthAccount":
var authAccount AuthAccountItem
aa := reflect.ValueOf(&authAccount)
err := readObject(r, &aa)
v.FieldByName("AuthAccount").Set(aa.Elem())
return err
case "VoteEntry":
return fmt.Errorf("VoteEntry not yet implemented...")
var VoteEntry VoteEntryItem
ve := reflect.ValueOf(&VoteEntry)
err := readObject(r, &ve)
v.FieldByName("VoteEntry").Set(ve.Elem())
return err
case "Memo":
var memo Memo
m := reflect.ValueOf(&memo)
Expand Down

0 comments on commit 68f92ff

Please sign in to comment.