File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 5
5
"reflect"
6
6
7
7
"github.com/cosmos/cosmos-sdk/codec"
8
- "github.com/cosmos/cosmos-sdk/codec/types"
9
8
sdk "github.com/cosmos/cosmos-sdk/types"
10
9
typestx "github.com/cosmos/cosmos-sdk/types/tx"
11
10
feetypes "github.com/cosmos/ibc-go/v8/modules/apps/29-fee/types"
@@ -102,11 +101,10 @@ func (cc *CosmosProvider) LogSuccessTx(res *sdk.TxResponse, msgs []provider.Rela
102
101
fields = append (fields , zap .Int64 ("gas_used" , res .GasUsed ))
103
102
104
103
// Extract fees and fee_payer if present
105
- ir := types .NewInterfaceRegistry ()
106
- cdc := codec .NewProtoCodec (ir )
104
+ cdc := codec .NewProtoCodec (cc .Cdc .InterfaceRegistry )
107
105
108
106
var m sdk.Msg
109
- if err := ir .UnpackAny (res .Tx , & m ); err == nil {
107
+ if err := cc . Cdc . InterfaceRegistry .UnpackAny (res .Tx , & m ); err == nil {
110
108
if tx , ok := m .(* typestx.Tx ); ok {
111
109
fields = append (fields , zap .Stringer ("fees" , tx .GetFee ()))
112
110
if feePayer := getFeePayer (cc .log , cdc , tx ); feePayer != "" {
You can’t perform that action at this time.
0 commit comments