diff --git a/app/benchmarks/txsize_test.go b/app/benchmarks/txsize_test.go index c6c62bfeed..ce135ee2a4 100644 --- a/app/benchmarks/txsize_test.go +++ b/app/benchmarks/txsize_test.go @@ -35,7 +35,7 @@ func ExampleTxSendSize() { if err != nil { return } - sigs := []auth.StdSignature{{nil, sig}} + sigs := []auth.StdSignature{{Signature: sig}} tx := auth.NewStdTx([]sdk.Msg{msg1}, fee, sigs, "") fmt.Println(len(cdc.MustMarshalBinaryBare([]sdk.Msg{msg1}))) fmt.Println(len(cdc.MustMarshalBinaryBare(tx))) diff --git a/x/wasm/internal/keeper/query_plugins.go b/x/wasm/internal/keeper/query_plugins.go index b51761673b..0bf8a47194 100644 --- a/x/wasm/internal/keeper/query_plugins.go +++ b/x/wasm/internal/keeper/query_plugins.go @@ -2,6 +2,7 @@ package keeper import ( "encoding/json" + wasmTypes "github.com/CosmWasm/go-cosmwasm/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" @@ -102,12 +103,12 @@ func BankQuerier(bank bank.ViewKeeper) func(ctx sdk.Context, request *wasmTypes. } return json.Marshal(res) } - return nil, wasmTypes.UnsupportedRequest{"unknown BankQuery variant"} + return nil, wasmTypes.UnsupportedRequest{Kind: "unknown BankQuery variant"} } } -func NoCustomQuerier(ctx sdk.Context, request json.RawMessage) ([]byte, error) { - return nil, wasmTypes.UnsupportedRequest{"custom"} +func NoCustomQuerier(sdk.Context, json.RawMessage) ([]byte, error) { + return nil, wasmTypes.UnsupportedRequest{Kind: "custom"} } func StakingQuerier(keeper staking.Keeper) func(ctx sdk.Context, request *wasmTypes.StakingQuery) ([]byte, error) { @@ -171,7 +172,7 @@ func StakingQuerier(keeper staking.Keeper) func(ctx sdk.Context, request *wasmTy } return json.Marshal(res) } - return nil, wasmTypes.UnsupportedRequest{"unknown Staking variant"} + return nil, wasmTypes.UnsupportedRequest{Kind: "unknown Staking variant"} } } @@ -242,7 +243,7 @@ func WasmQuerier(wasm Keeper) func(ctx sdk.Context, request *wasmTypes.WasmQuery // TODO: do we want to change the return value? return json.Marshal(models) } - return nil, wasmTypes.UnsupportedRequest{"unknown WasmQuery variant"} + return nil, wasmTypes.UnsupportedRequest{Kind: "unknown WasmQuery variant"} } }