File tree 1 file changed +4
-0
lines changed
app2/src/lib/components/Transfer
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import SharpCancelIcon from "$lib/components/icons/SharpCancelIcon.svelte"
14
14
import SharpListRemoveIcon from " $lib/components/icons/SharpListRemoveIcon.svelte"
15
15
import RestoreIcon from " $lib/components/icons/RestoreIcon.svelte"
16
16
import SharpWalletIcon from " $lib/components/icons/SharpWalletIcon.svelte"
17
+ import { getDerivedReceiverSafe } from " $lib/services/shared"
17
18
18
19
let destinationChain = $derived (
19
20
Option .isSome (transfer .destinationChain ) ? Option .getOrNull (transfer .destinationChain ) : null
@@ -219,6 +220,9 @@ function useConnectedWallet() {
219
220
220
221
function submitManualAddress() {
221
222
if (manualAddress .trim ()) {
223
+ const derivedReceiverAddr = getDerivedReceiverSafe (manualAddress )
224
+ const derived = Option .getOrNull (derivedReceiverAddr )
225
+ manualAddress = derived ?? manualAddress
222
226
useAddress (manualAddress .trim (), bookmarkOnAdd )
223
227
}
224
228
}
You can’t perform that action at this time.
0 commit comments