Skip to content

Commit 271b40d

Browse files
committed
examples: fix payload encoding
the only existing app uses only protobuf encoding for the payload value, so let's use this encoding in the example.
1 parent 715fe8f commit 271b40d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gno.land/r/aib/ibc/core/zz_acknowledgement_example_filetest.gno

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ func main() {
1818
DestinationClient: "counterPartyID", // XXX update
1919
TimeoutTimestamp: uint64(time.Now().Unix()), // XXX update: must be the same as the timestamp of the send packet
2020
Payloads: []types.Payload{{
21-
SourcePort: "appID", // XXX update
22-
DestinationPort: "counterPartyAppID", //XXX update
23-
Encoding: "application/json",
24-
Value: []byte("{}"), // XXX update
25-
Version: "v1", // XXX update: version of app (transfer uses v1)
21+
SourcePort: "appID", // XXX update
22+
DestinationPort: "appID", //XXX update
23+
Encoding: "application/x-protobuf",
24+
Value: []byte{}, // XXX update
25+
Version: "v1", // XXX update: version of app (transfer uses v1)
2626
}},
2727
},
2828
Acknowledgement: types.Acknowledgement{

0 commit comments

Comments
 (0)