Skip to content

Commit e05fe97

Browse files
committed
Fix Liquid
1 parent 6972606 commit e05fe97

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/app/swap/liquid.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,20 @@ export interface SwapLiquidInterface {
66
swapLiquid: BreezSwapLiquid;
77
}
88

9-
// Create an instance of the SDK for Liquid swaps
10-
const breezSwapLiquid = new RefundableSwap();
9+
const swapLiquid: SwapLiquidInterface = {
10+
swap: ()
11+
.then(() => {
12+
console.log("Swap successful");
13+
})
14+
.catch((error) => {
15+
console.error("Swap error:", error);
16+
}),
17+
swapLiquid: breezSwapLiquid,
18+
};
19+
20+
const RefundableSwap = {
21+
swapLiquid,
22+
};
1123

1224
// Initialize the SDK instance
1325
breezSwapLiquid.init({

0 commit comments

Comments
 (0)