* Merge pull request from GHSA-2p6r-37p9-89p2 * test: adding authz grant tests * fix TestCLITxGrantAuthorization/Invalid_expiration_time test case * comment out the test * reenable test * master update * update changelog and cli test * fix keeper tests * fix decoder test * cleaning * wip - tests * fix cli test * add a comment * update TestMsgGrantAuthorization * udpate changelog * fix sims * fix sims * update changelog * Update x/authz/authorization_grant.go Co-authored-by: Robert Zaremba <robert@zaremba.ch> Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
15 lines
443 B
Go
15 lines
443 B
Go
package testutil
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/testutil"
|
|
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
|
"github.com/cosmos/cosmos-sdk/testutil/network"
|
|
"github.com/cosmos/cosmos-sdk/x/authz/client/cli"
|
|
)
|
|
|
|
func CreateGrant(val *network.Validator, args []string) (testutil.BufferWriter, error) {
|
|
cmd := cli.NewCmdGrantAuthorization()
|
|
clientCtx := val.ClientCtx
|
|
return clitestutil.ExecTestCLICmd(clientCtx, cmd, args)
|
|
}
|