File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
services/transfer-ucs03-aptos Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ( ) )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { generateSalt } from "./salt.ts"
77import type { Chain } from "$lib/schema/chain.ts"
88import 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" ) )
You can’t perform that action at this time.
0 commit comments