Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions aclmapping/bank/mappings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ func cacheTxContext(ctx sdk.Context) (sdk.Context, sdk.CacheMultiStore) {
return ctx.WithMultiStore(msCache), msCache
}

func TestMsgBankDependencyGenerator(t *testing.T) {
bankDependencyGenerator := GetBankDepedencyGenerator()
// verify that there's one entry, for bank send
require.Equal(t, 1, len(bankDependencyGenerator))
// check that bank send generator is in the map
_, ok := bankDependencyGenerator[acltypes.GenerateMessageKey(&banktypes.MsgSend{})]
require.True(t, ok)
}

func TestMsgBankSendAclOps(t *testing.T) {
priv1 := secp256k1.GenPrivKey()
addr1 := sdk.AccAddress(priv1.PubKey().Address())
Expand Down