Closed shaneing closed 11 months ago
The message is as follows:
message SignDoc { uint64 account_number = 1; }
And run the following code:
func main() { doc := pb.SignDoc{ AccountNumber: 0, } bytes, _ := proto.Marshal(&doc) fmt.Println(bytes) }
The output is as follows:
[]
The output is different from the serialized result [32, 0] in TypeScript.
[32, 0]
This is due to defaults being serialized. one of PRs that @Santalov put together is going to fix this.
This is fixed with the rust rewrite as we conform to protobuf conformance tests!
The message is as follows:
And run the following code:
The output is as follows:
The output is different from the serialized result
[32, 0]
in TypeScript.