diff --git a/pages/authz/grant.tsx b/pages/authz/grant.tsx index 261d5f2..548bb90 100644 --- a/pages/authz/grant.tsx +++ b/pages/authz/grant.tsx @@ -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 = () => { + diff --git a/pages/authz/revoke.tsx b/pages/authz/revoke.tsx index 3ed58af..3036db8 100644 --- a/pages/authz/revoke.tsx +++ b/pages/authz/revoke.tsx @@ -119,6 +119,9 @@ const RevokeAuthorization: NextPage = () => { +