Skip to content

Commit

Permalink
chore: update MsgGrant example
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-kal committed Apr 27, 2022
1 parent 24c51d4 commit 6d63e6d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions examples/chain/19_MsgGrant/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,11 @@ func main() {
grantee := "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r"
expireIn := time.Now().AddDate(1, 0, 0) // years months days

// GENERIC AUTHZ
//GENERIC AUTHZ
//msgtype := "/injective.exchange.v1beta1.MsgCreateSpotLimitOrder"
//msg := chainClient.BuildGenericAuthz(granter, grantee, msgtype, expireIn)

// TYPED AUTHZ
//msg := chainClient.BuildExchangeBatchUpdateOrdersAuthz(
// granter,
// grantee,
// chainClient.DefaultSubaccount(senderAddress).String(),
// []string{"0xe0dc13205fb8b23111d8555a6402681965223135d368eeeb964681f9ff12eb2a"},
// []string{"0xe0dc13205fb8b23111d8555a6402681965223135d368eeeb964681f9ff12eb2a"},
// expireIn,
//)

msg := chainClient.BuildExchangeAuthz(
granter,
grantee,
Expand Down

0 comments on commit 6d63e6d

Please sign in to comment.