Skip to content

Commit

Permalink
fix address serialzier
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed Nov 30, 2023
1 parent d35b7b0 commit d47ae48
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion x/move/client/cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@ func BcsSerializeArg(argType string, arg string, s serde.Serializer) ([]byte, er
if err != nil {
return nil, err
}
return accAddr.BcsSerialize();
err = s.IncreaseContainerDepth()
if err != nil {
return nil, err
}
for _, item := range(accAddr) {
if err := s.SerializeU8(item); err != nil { return nil, err }
}
s.DecreaseContainerDepth()

return s.GetBytes(), nil

case "string":
if err := s.SerializeStr(arg); err != nil {
Expand Down

0 comments on commit d47ae48

Please sign in to comment.