Skip to content

Commit

Permalink
Revert Note on bcs struct serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
nikos-terzo committed Aug 26, 2024
1 parent 52f9bb5 commit 5faa5e2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions book/src/programmability/bcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ Structs encode similarly to simple types. Here is how to encode a struct using B
{{#include ../../../packages/samples/sources/programmability/bcs.move:encode_struct}}
```

Note that encoding a custom struct does not make much sense in interacting with the Move VM, as
they cannot be created this way to use in Move VM. See also
[Transaction Inputs](../concepts/what-is-a-transaction.html#inputs).

## Decoding

Because BCS does not self-describe and Move is statically typed, decoding requires prior knowledge of the data type. The `sui::bcs` module provides various functions to assist with this process.
Expand Down

0 comments on commit 5faa5e2

Please sign in to comment.