Include MsgStoreCode among authz grant & revoke options
This commit is contained in:
parent
58ae7c05af
commit
57fabf90da
@ -39,6 +39,7 @@ export type GenericAuthorizationType =
|
||||
| 'MsgSend'
|
||||
| 'MsgExecuteContract'
|
||||
| 'MsgMigrateContract'
|
||||
| 'MsgStoreCode'
|
||||
|
||||
const Grant: NextPage = () => {
|
||||
const wallet = useWallet()
|
||||
@ -189,6 +190,14 @@ const Grant: NextPage = () => {
|
||||
(expiration?.getTime() as number) / 1000 || 0,
|
||||
)
|
||||
}
|
||||
if (genericAuthType === 'MsgStoreCode') {
|
||||
return AuthzGenericGrantMsg(
|
||||
wallet.address || '',
|
||||
granteeAddressState.value,
|
||||
'/cosmwasm.wasm.v1.MsgStoreCode',
|
||||
(expiration?.getTime() as number) / 1000 || 0,
|
||||
)
|
||||
}
|
||||
} else if (authType === 'Send') {
|
||||
return AuthzSendGrantMsg(
|
||||
wallet.address || '',
|
||||
@ -272,6 +281,7 @@ const Grant: NextPage = () => {
|
||||
<option value="MsgVote">Vote</option>
|
||||
<option value="MsgExecuteContract">Execute Contract</option>
|
||||
<option value="MsgMigrateContract">Migrate Contract</option>
|
||||
<option value="MsgStoreCode">Store Code</option>
|
||||
</select>
|
||||
</div>
|
||||
</Conditional>
|
||||
|
||||
@ -119,6 +119,9 @@ const RevokeAuthorization: NextPage = () => {
|
||||
<option className="bg-black" value="/cosmwasm.wasm.v1.MsgMigrateContract">
|
||||
/cosmwasm.wasm.v1.MsgMigrateContract
|
||||
</option>
|
||||
<option className="bg-black" value="/cosmwasm.wasm.v1.MsgStoreCode">
|
||||
/cosmwasm.wasm.v1.MsgStoreCode
|
||||
</option>
|
||||
<option className="bg-black" disabled value="/cosmos.bank.v1beta1.SendAuthorization">
|
||||
/cosmos.bank.v1beta1.SendAuthorization
|
||||
</option>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user