Skip to content

Commit

Permalink
fix: properly use EncodedLen
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Apr 2, 2020
1 parent 48c3bf5 commit 0633825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/x/swingset/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func handleIBCPacket(ctx sdk.Context, keeper Keeper, actionType string, packet c
}

data := packet.GetData()
data64 := make(byte[base64.StdEncoding.EncodedLen(data)])
data64 := make([]byte, base64.StdEncoding.EncodedLen(len(data)))
base64.StdEncoding.Encode(data64, data)

action := &ibcPacketAction{
Expand Down

0 comments on commit 0633825

Please sign in to comment.