diff --git a/web-wallet/CHANGELOG.md b/web-wallet/CHANGELOG.md
index c87f630e42..d0205b62fd 100644
--- a/web-wallet/CHANGELOG.md
+++ b/web-wallet/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove Beta ribbon [#3164]
- Remove "UsageIndicator" component [#3245]
+- Remove "VITE_FEATURE_MOONLIGHT_TRANSACTIONS" flag [#3246]
### Fixed
diff --git a/web-wallet/README.md b/web-wallet/README.md
index 3a3d5913be..9311813137 100644
--- a/web-wallet/README.md
+++ b/web-wallet/README.md
@@ -35,7 +35,6 @@ N.B. the current `0.1.2` version of the library has no option to pick the networ
VITE_BASE_PATH=""
VITE_FEATURE_ALLOCATE=true
VITE_FEATURE_MIGRATE=true
-VITE_FEATURE_MOONLIGHT_TRANSACTIONS=true
VITE_FEATURE_STAKE=true
VITE_FEATURE_TRANSFER=true
VITE_FEATURE_TRANSACTION_HISTORY=true
diff --git a/web-wallet/src/lib/components/Send/Send.svelte b/web-wallet/src/lib/components/Send/Send.svelte
index de8ca260db..fea27e89d7 100644
--- a/web-wallet/src/lib/components/Send/Send.svelte
+++ b/web-wallet/src/lib/components/Send/Send.svelte
@@ -47,9 +47,6 @@
/** @type {GasStoreContent} */
export let gasLimits;
- /** @type {boolean} */
- export let enableMoonlightTransactions = false;
-
/** @type {string} */
export let shieldedAddress;
@@ -110,21 +107,6 @@
let activeStep = 0;
- /**
- * Validates an address/account depending on moonlight transactions being enabled.
- *
- * Note. This function can be removed when the VITE_FEATURE_MOONLIGHT_TRANSACTIONS flag is removed.
- *
- * @param {{isValid: boolean, type?: "address" | "account", isSelfReferential? : boolean}} addressInfo
- */
- function isValid(addressInfo) {
- return !addressInfo.isValid
- ? true
- : isMoonlightTransaction
- ? !enableMoonlightTransactions
- : false;
- }
-
$: sendAmountInLux = sendAmount ? duskToLux(sendAmount) : 0n;
// Calculate the maximum gas fee based on the gas limit and gas price.
@@ -166,8 +148,6 @@
publicAddress
);
- $: isMoonlightTransaction = addressInfo.type === "account";
-
$: if (addressInfo.type) {
dispatch("keyChange", {
type: addressInfo.type,
@@ -191,7 +171,7 @@
}}
nextButton={{
action: () => activeStep++,
- disabled: isValid(addressInfo),
+ disabled: !addressInfo.isValid,
}}
>
@@ -213,19 +193,12 @@
bind:value={sendToAddress}
/>
{#if addressInfo.type === "account"}
-
- {#if enableMoonlightTransactions}
-
- This transaction will be public and sent from your public account.
-
- {:else}
- Public transactions are currently unavailable.
- {/if}
+
+
+ This transaction will be public and sent from your public account.
+
{/if}
Address step > should display a warning if the address input is
@@ -129,9 +129,12 @@ exports[`Send > Address step > should display a warning if the address input is
- Public transactions are currently unavailable.
+ This transaction will be public and sent from your
+
+ public
+
+ account.
-
@@ -195,7 +198,6 @@ exports[`Send > Address step > should display a warning if the address input is