Skip to content

Commit a202a0c

Browse files
committed
fix(app2): small changes
1 parent 908105f commit a202a0c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

app2/src/lib/transfer/multisig/components/SenderInput.svelte

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ import Input from "$lib/components/ui/Input.svelte"
33
import { wallets } from "$lib/stores/wallets.svelte"
44
import { transferData } from "$lib/transfer/shared/data/transfer-data.svelte"
55
import { Bech32FromAddressCanonicalBytesWithPrefix } from "@unionlabs/sdk/schema"
6-
import { Array as A, Either as E, Option as O, ParseResult, pipe, Schema as S } from "effect"
6+
import { Array as A, Either as E, ParseResult, pipe, Schema as S } from "effect"
77
import { apply } from "effect/Function"
88
import type { FormEventHandler } from "svelte/elements"
99
import { onMount } from "svelte"
10+
import { signingMode } from "$lib/transfer/signingMode.svelte.js"
1011
1112
let messages = $state.raw<ReadonlyArray<string>>([])
12-
const sender = $derived(transferData.raw.sender)
13+
const sender = $derived(signingMode.mode === "multi" ? transferData.raw.sender : "")
1314
1415
const validateAddress = (address: string) => {
1516
pipe(

app2/src/lib/transfer/normal/steps/steps.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import type { Instruction } from "@unionlabs/sdk/ucs03/instruction.ts"
1515
export type Steps = Data.TaggedEnum<{
1616
Filling: {}
1717
CheckReceiver: {
18-
receiver: AddressCanonicalBytes
19-
destinationChain: Chain
18+
readonly receiver: AddressCanonicalBytes
19+
readonly destinationChain: Chain
2020
}
2121
ApprovalRequired: {
2222
readonly token: TokenRawDenom
@@ -29,7 +29,7 @@ export type Steps = Data.TaggedEnum<{
2929
readonly intent: Intent
3030
}
3131
WaitForIndex: {
32-
intent: Intent
32+
readonly intent: Intent
3333
}
3434
}>
3535

app2/src/lib/transfer/shared/data/transfer-data.svelte.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class TransferData {
7676

7777
const sourceChain = this.sourceChain.value
7878

79-
if (Option.isSome(wallets.inputAddress)) {
79+
if (Option.isSome(wallets.inputAddress) && signingMode.mode === "multi") {
8080
return wallets.inputAddress
8181
} else if (signingMode.mode === "single") {
8282
return wallets.getAddressForChain(sourceChain)

0 commit comments

Comments
 (0)