Skip to content

Commit fedf8d9

Browse files
committed
chore(ts-sdk): rename solver meta
Signed-off-by: Eric Hegnes <eric@hegnes.com>
1 parent 32564f4 commit fedf8d9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
EU_LST,
1919
U_BANK,
2020
U_ERC20,
21-
U_FROM_UNION_SOLVER_METADATA,
21+
U_ON_ETH_SOLVER_METADATA,
2222
U_TO_UNION_SOLVER_METADATA,
2323
} from "@unionlabs/sdk/Constants"
2424
import * as US from "@unionlabs/sdk/schema"
@@ -244,9 +244,10 @@ export class TransferData {
244244
Option.all([this.kind, this.baseToken, this.destinationChain]).pipe(
245245
Option.flatMap(([kind, baseToken, destChain]) =>
246246
Match.value([kind, baseToken.denom, destChain.rpc_type, destChain.universal_chain_id]).pipe(
247-
Match.when(
247+
Match.whenOr(
248248
["solve", "0x6175", "evm", Match.any],
249-
() => Option.some(U_FROM_UNION_SOLVER_METADATA),
249+
["solve", U_ERC20.address.toLowerCase(), "evm", Match.any],
250+
() => Option.some(U_ON_ETH_SOLVER_METADATA),
250251
),
251252
Match.when(
252253
["solve", U_ERC20.address.toLowerCase(), "cosmos", Str.startsWith("union.")],

ts-sdk/src/Constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const EU_LST = Ucs05.CosmosDisplay.make({
239239
* @category constants
240240
* @since 2.0.0
241241
*/
242-
export const U_FROM_UNION_SOLVER_METADATA =
242+
export const U_ON_ETH_SOLVER_METADATA =
243243
"0x000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000014ba5ed44733953d79717f6269357c77718c8ba5ed0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" as const
244244

245245
/**

0 commit comments

Comments
 (0)