Skip to content

Commit

Permalink
authz fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed Dec 14, 2022
1 parent c943ccb commit f7afb24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/e2e/grants_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import (
"fmt"
"testing"

"github.com/CosmWasm/wasmd/x/wasm/ibctesting"
"github.com/CosmWasm/wasmd/x/wasm/types"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/authz"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/CosmWasm/wasmd/x/wasm/ibctesting"
"github.com/CosmWasm/wasmd/x/wasm/types"
)

func TestGrants(t *testing.T) {
Expand Down Expand Up @@ -74,7 +73,7 @@ func TestGrants(t *testing.T) {
filter: types.NewAllowAllMessagesFilter(),
senderKey: otherPrivKey,
transferAmount: myAmount,
expErr: sdkerrors.ErrUnauthorized,
expErr: authz.ErrNoAuthorizationFound,
},
}
for name, spec := range specs {
Expand Down
Binary file added x/wasm/keeper/testdata/reflect_1_1.wasm
Binary file not shown.

0 comments on commit f7afb24

Please sign in to comment.