diff --git a/api/src/utils/protobuf.ts b/api/src/utils/protobuf.ts index bb406711f..c78b895ee 100644 --- a/api/src/utils/protobuf.ts +++ b/api/src/utils/protobuf.ts @@ -1,7 +1,6 @@ import { Registry, isTsProtoGeneratedType, GeneratedType } from "@cosmjs/proto-signing"; import { defaultRegistryTypes } from "@cosmjs/stargate"; import { MsgUnjail } from "cosmjs-types/cosmos/slashing/v1beta1/tx"; -import omit from "lodash/omit"; import * as v1beta1 from "@akashnetwork/akash-api/v1beta1"; import * as v1beta2 from "@akashnetwork/akash-api/v1beta2"; @@ -10,8 +9,8 @@ import * as v1beta4 from "@akashnetwork/akash-api/v1beta4"; const akashTypes: ReadonlyArray<[string, GeneratedType]> = [ ...Object.values(v1beta1), - ...Object.values(omit(v1beta2, "Storage")), - ...Object.values(omit(v1beta3, ["DepositDeploymentAuthorization", "GPU"])), + ...Object.values(v1beta2), + ...Object.values(v1beta3), ...Object.values(v1beta4) ].map((x) => ["/" + x.$type, x]); const missingTypes: ReadonlyArray<[string, GeneratedType]> = [["/cosmos.slashing.v1beta1.MsgUnjail", MsgUnjail]]; diff --git a/deploy-web/src/utils/proto/index.ts b/deploy-web/src/utils/proto/index.ts index bd6e8abe9..9018345b1 100644 --- a/deploy-web/src/utils/proto/index.ts +++ b/deploy-web/src/utils/proto/index.ts @@ -1,9 +1,9 @@ import * as v1beta3 from "@akashnetwork/akash-api/v1beta3"; import * as v1beta4 from "@akashnetwork/akash-api/v1beta4"; + import { mainnetId, testnetId, sandboxId } from "../constants"; -import omit from "lodash/omit"; -const commonTypes = { ...omit(v1beta3, "GPU"), ...v1beta4 }; +const commonTypes = { ...v1beta3, ...v1beta4 }; const mainnetTypes = commonTypes; const sandboxTypes = commonTypes;