diff --git a/CHANGELOG.md b/CHANGELOG.md
index ea7779dc0..a932dc9a9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Bug fixes
+- [#909](https://github.com/alleslabs/celatone-frontend/pull/909) Remove module arbitrary policy as it is no longer supported
- [#904](https://github.com/alleslabs/celatone-frontend/pull/904) Fix wasm page container text alignment
- [#893](https://github.com/alleslabs/celatone-frontend/pull/893) Fix validator list percent
diff --git a/src/lib/pages/publish-module/components/accordions.tsx b/src/lib/pages/publish-module/components/accordions.tsx
index 0788d80f4..d45efccb8 100644
--- a/src/lib/pages/publish-module/components/accordions.tsx
+++ b/src/lib/pages/publish-module/components/accordions.tsx
@@ -85,9 +85,8 @@ export const PolicyAccordion = ({ chainName }: { chainName: string }) => (
with similar configurations.
- Each policy will provide different flexibility for further upgrades
- whether you can add new functions without maintaining old functions
- (Arbitrary), or required to maintain old functions (Compatible).
+ “Compatible” will allow for further upgrades while requiring to
+ maintain old functions.
Choosing “Immutable” will not allow you to make any changes with this
diff --git a/src/lib/pages/publish-module/formConstants.ts b/src/lib/pages/publish-module/formConstants.ts
index ff1a7d6bd..5ddd3dc95 100644
--- a/src/lib/pages/publish-module/formConstants.ts
+++ b/src/lib/pages/publish-module/formConstants.ts
@@ -34,11 +34,6 @@ export const emptyModule: Module = {
};
export const POLICIES = [
- {
- value: UpgradePolicy.ARBITRARY,
- description: "You can publish these modules again without any restrictions",
- condition: false,
- },
{
value: UpgradePolicy.COMPATIBLE,
description:
@@ -54,5 +49,5 @@ export const POLICIES = [
export const defaultValues: PublishModuleState = {
modules: [emptyModule],
- upgradePolicy: UpgradePolicy.ARBITRARY,
+ upgradePolicy: UpgradePolicy.COMPATIBLE,
};
diff --git a/src/lib/pages/publish-module/index.tsx b/src/lib/pages/publish-module/index.tsx
index 534b2ea11..0b2baf09f 100644
--- a/src/lib/pages/publish-module/index.tsx
+++ b/src/lib/pages/publish-module/index.tsx
@@ -11,7 +11,7 @@ import { PublishModule } from "./publish";
const DEFAULT_STATE: PublishCompleteState = {
txHash: "",
txFee: undefined,
- upgradePolicy: UpgradePolicy.ARBITRARY,
+ upgradePolicy: UpgradePolicy.UNSPECIFIED,
modules: [],
};
export interface PublishCompleteState extends PublishTxInternalResult {
diff --git a/src/lib/pages/publish-module/utils.ts b/src/lib/pages/publish-module/utils.ts
index b85f9cca9..b62b01e93 100644
--- a/src/lib/pages/publish-module/utils.ts
+++ b/src/lib/pages/publish-module/utils.ts
@@ -51,7 +51,6 @@ export const statusResolver = ({
// Policy check
// IMMUTABLE -> cannot be republished
// COMPATIBLE -> can be republished as COMPATIBLE and IMMUTABLE only
- // ARBITRARY -> can be freely republished
case UpgradePolicy.IMMUTABLE:
return {
status: "error",
diff --git a/src/lib/types/move/module.ts b/src/lib/types/move/module.ts
index 61bf320d7..b1a9c2667 100644
--- a/src/lib/types/move/module.ts
+++ b/src/lib/types/move/module.ts
@@ -5,7 +5,7 @@ import type { Proposal } from "../proposal";
import type { ExposedFunction, ModuleAbi } from "./abi";
export enum UpgradePolicy {
- ARBITRARY = "ARBITRARY",
+ UNSPECIFIED = "UNSPECIFIED",
COMPATIBLE = "COMPATIBLE",
IMMUTABLE = "IMMUTABLE",
}