Skip to content

Commit d3c41b3

Browse files
committed
chore(appv2-movement): making fmt happy
Signed-off-by: Kaan Caglan <caglankaan@gmail.com>
1 parent 0735195 commit d3c41b3

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ function getStatus(
5050
if (isAptosComplete(state.state)) return "complete"
5151
return "processing"
5252
}
53+
default:
54+
return "empty"
5355
}
5456
}
5557
@@ -74,6 +76,8 @@ function getError(state: TransferStateUnion): string | null {
7476
}
7577
return null
7678
}
79+
default:
80+
return null
7781
}
7882
}
7983
@@ -83,9 +87,13 @@ function getStepName(state: TransferStateUnion): string | null {
8387
case "Empty":
8488
return null
8589
case "EVM":
90+
return state.state._tag
8691
case "Aptos":
92+
return state.state._tag
8793
case "Cosmos":
8894
return state.state._tag
95+
default:
96+
return null
8997
}
9098
}
9199

app2/src/lib/components/Transfer/transfer.svelte.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export class Transfer {
8686
const sourceChainValue = this.sourceChain.value
8787
if (sourceChainValue.rpc_type === "evm") {
8888
return TransferState.EVM(EvmTransferSubmission.Filling())
89-
} else if (sourceChainValue.rpc_type === "aptos") {
89+
}
90+
if (sourceChainValue.rpc_type === "aptos") {
9091
return TransferState.Aptos(AptosTransferSubmission.Filling())
9192
}
9293
return TransferState.Cosmos(CosmosTransferSubmission.Filling())

app2/src/lib/services/transfer-ucs03-aptos/transactions-aptos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { generateSalt } from "./salt.ts"
77
import type { Chain } from "$lib/schema/chain.ts"
88
import type { ValidTransfer } from "$lib/schema/transfer-args.ts"
99

10-
export const submitTransfer = (chain: Chain, transfer: ValidTransfer["args"]) =>
10+
export const submitTransfer = (_chain: Chain, transfer: ValidTransfer["args"]) =>
1111
Effect.gen(function* () {
1212
if (transfer.sourceRpcType !== "aptos") {
1313
return yield* Effect.fail(new Error("Only EVM transfers are supported"))

0 commit comments

Comments
 (0)