Skip to content

Commit 232afd5

Browse files
committed
fix(app2): fixed manual address entering issue
Signed-off-by: Kaan Caglan <[email protected]>
1 parent 472a56d commit 232afd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app2/src/lib/components/Transfer/Receiver.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import SharpCancelIcon from "$lib/components/icons/SharpCancelIcon.svelte"
1414
import SharpListRemoveIcon from "$lib/components/icons/SharpListRemoveIcon.svelte"
1515
import RestoreIcon from "$lib/components/icons/RestoreIcon.svelte"
1616
import SharpWalletIcon from "$lib/components/icons/SharpWalletIcon.svelte"
17+
import { getDerivedReceiverSafe } from "$lib/services/shared"
1718
1819
let destinationChain = $derived(
1920
Option.isSome(transfer.destinationChain) ? Option.getOrNull(transfer.destinationChain) : null
@@ -219,6 +220,9 @@ function useConnectedWallet() {
219220
220221
function submitManualAddress() {
221222
if (manualAddress.trim()) {
223+
const derivedReceiverAddr = getDerivedReceiverSafe(manualAddress);
224+
const derived = Option.getOrNull(derivedReceiverAddr);
225+
manualAddress = derived ?? manualAddress
222226
useAddress(manualAddress.trim(), bookmarkOnAdd)
223227
}
224228
}

0 commit comments

Comments
 (0)