Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Nov 7, 2023
1 parent 0382983 commit 4731678
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codec/types/any.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func (any *Any) pack(x proto.Message) error {
err error
)
if msg, ok := x.(protov2.Message); ok {
bz, err = protov2.Marshal(msg)
protov2MarshalOpts := protov2.MarshalOptions{Deterministic: true}
bz, err = protov2MarshalOpts.Marshal(msg)
} else {
bz, err = proto.Marshal(x)
}
Expand Down

0 comments on commit 4731678

Please sign in to comment.