refactor: Use anyutil instead of any (#15322)

This commit is contained in:
Amaury
2023-03-09 14:24:57 +01:00
committed by GitHub
parent 2b7a1102ed
commit 6252e5d2c0
17 changed files with 49 additions and 47 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/cosmos/cosmos-proto/any"
"github.com/cosmos/cosmos-proto/anyutil"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
@@ -42,7 +42,7 @@ func LoadYAML(bz []byte) depinject.Config {
// WrapAny marshals a proto message into a proto Any instance
func WrapAny(config protoreflect.ProtoMessage) *anypb.Any {
cfg, err := any.New(config)
cfg, err := anyutil.New(config)
if err != nil {
panic(err)
}