We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32564f4 commit fedf8d9Copy full SHA for fedf8d9
app2/src/lib/transfer/shared/data/transfer-data.svelte.ts
@@ -18,7 +18,7 @@ import {
18
EU_LST,
19
U_BANK,
20
U_ERC20,
21
- U_FROM_UNION_SOLVER_METADATA,
+ U_ON_ETH_SOLVER_METADATA,
22
U_TO_UNION_SOLVER_METADATA,
23
} from "@unionlabs/sdk/Constants"
24
import * as US from "@unionlabs/sdk/schema"
@@ -244,9 +244,10 @@ export class TransferData {
244
Option.all([this.kind, this.baseToken, this.destinationChain]).pipe(
245
Option.flatMap(([kind, baseToken, destChain]) =>
246
Match.value([kind, baseToken.denom, destChain.rpc_type, destChain.universal_chain_id]).pipe(
247
- Match.when(
+ Match.whenOr(
248
["solve", "0x6175", "evm", Match.any],
249
- () => Option.some(U_FROM_UNION_SOLVER_METADATA),
+ ["solve", U_ERC20.address.toLowerCase(), "evm", Match.any],
250
+ () => Option.some(U_ON_ETH_SOLVER_METADATA),
251
),
252
Match.when(
253
["solve", U_ERC20.address.toLowerCase(), "cosmos", Str.startsWith("union.")],
ts-sdk/src/Constants.ts
@@ -239,7 +239,7 @@ export const EU_LST = Ucs05.CosmosDisplay.make({
239
* @category constants
240
* @since 2.0.0
241
*/
242
-export const U_FROM_UNION_SOLVER_METADATA =
+export const U_ON_ETH_SOLVER_METADATA =
243
"0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000014ba5ed44733953d79717f6269357c77718c8ba5ed0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" as const
/**
0 commit comments