From db93ba2b603d8fca3cc291ce040057b954206634 Mon Sep 17 00:00:00 2001 From: Norton Andreev Date: Sun, 22 Dec 2024 18:15:23 +0200 Subject: [PATCH] web-wallet: Disable source wallet option on migration initialization Resolves #3270 --- web-wallet/CHANGELOG.md | 2 ++ .../lib/containers/MigrateContract/MigrateContract.svelte | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/web-wallet/CHANGELOG.md b/web-wallet/CHANGELOG.md index 65ee2c3eb..9e83e3fb7 100644 --- a/web-wallet/CHANGELOG.md +++ b/web-wallet/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update Transactions list design [#1922] - Prioritize Public Account in the interface and transaction flows [#3259] +- Disable source wallet option on migration initialization (Migrate flow) [#3270] ### Removed @@ -480,6 +481,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#3245]: https://github.com/dusk-network/rusk/issues/3245 [#3259]: https://github.com/dusk-network/rusk/issues/3259 [#3265]: https://github.com/dusk-network/rusk/issues/3265 +[#3270]: https://github.com/dusk-network/rusk/issues/3270 diff --git a/web-wallet/src/lib/containers/MigrateContract/MigrateContract.svelte b/web-wallet/src/lib/containers/MigrateContract/MigrateContract.svelte index ae969c3f0..af833edc8 100644 --- a/web-wallet/src/lib/containers/MigrateContract/MigrateContract.svelte +++ b/web-wallet/src/lib/containers/MigrateContract/MigrateContract.svelte @@ -59,7 +59,10 @@ const { ["ERC-20"]: erc20, ["BEP-20"]: bep20 } = tokens[network]; - const options = ["ERC-20", "BEP-20"]; + $: options = [ + { label: "ERC-20", value: "ERC-20", disabled: isInputDisabled }, + { label: "BEP-20", value: "BEP-20", disabled: isInputDisabled }, + ]; // The minimum allowed amount to be migrated expressed as a string const minAmount = "0.000000001";