Remove not_supported_by_chain for authz and feegrant messages

This commit is contained in:
Simon Warta 2023-06-13 14:55:15 +02:00
parent e21ce59675
commit d8412cf90a
2 changed files with 13 additions and 5 deletions

View File

@ -2,8 +2,12 @@ import { AminoConverters } from "../../aminotypes";
export function createAuthzAminoConverters(): AminoConverters {
return {
"/cosmos.authz.v1beta1.MsgGrant": "not_supported_by_chain",
"/cosmos.authz.v1beta1.MsgExec": "not_supported_by_chain",
"/cosmos.authz.v1beta1.MsgRevoke": "not_supported_by_chain",
// For Cosmos SDK < 0.46 the Amino JSON codec was broken on chain and thus inaccessible.
// Now this can be implemented for 0.46+ chains, see
// https://github.com/cosmos/cosmjs/issues/1092
//
// "/cosmos.authz.v1beta1.MsgGrant": IMPLEMENT ME,
// "/cosmos.authz.v1beta1.MsgExec": IMPLEMENT ME,
// "/cosmos.authz.v1beta1.MsgRevoke": IMPLEMENT ME,
};
}

View File

@ -2,7 +2,11 @@ import { AminoConverters } from "../../aminotypes";
export function createFeegrantAminoConverters(): AminoConverters {
return {
"/cosmos.feegrant.v1beta1.MsgGrantAllowance": "not_supported_by_chain",
"/cosmos.feegrant.v1beta1.MsgRevokeAllowance": "not_supported_by_chain",
// For Cosmos SDK < 0.46 the Amino JSON codec was broken on chain and thus inaccessible.
// Now this can be implemented for 0.46+ chains, see
// https://github.com/cosmos/cosmjs/issues/1092
//
// "/cosmos.feegrant.v1beta1.MsgGrantAllowance": IMPLEMENT_ME,
// "/cosmos.feegrant.v1beta1.MsgRevokeAllowance": IMPLEMENT_ME,
};
}