Skip to content

Commit

Permalink
AccountId decode value add 0x
Browse files Browse the repository at this point in the history
  • Loading branch information
freehere107 committed Mar 21, 2024
1 parent 908ae59 commit 4ac5745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ type AccountId struct {
}

func (s *AccountId) Process() {
s.Value = xstrings.RightJustify(utiles.BytesToHex(s.NextBytes(32)), 64, "0")
s.Value = utiles.AddHex(xstrings.RightJustify(utiles.BytesToHex(s.NextBytes(32)), 64, "0"))
}

func (s *AccountId) Encode(value string) string {
Expand Down

0 comments on commit 4ac5745

Please sign in to comment.