mypy
This commit is contained in:
@@ -52,7 +52,7 @@ async def save_ln_to_btc(
|
|||||||
data: LnToBtcSwap,
|
data: LnToBtcSwap,
|
||||||
) -> LnToBtcSwap:
|
) -> LnToBtcSwap:
|
||||||
|
|
||||||
await db.execute(
|
return await db.execute(
|
||||||
"""
|
"""
|
||||||
INSERT INTO deezy.ln_to_btc_swap (
|
INSERT INTO deezy.ln_to_btc_swap (
|
||||||
amount_sats,
|
amount_sats,
|
||||||
@@ -75,7 +75,6 @@ async def save_ln_to_btc(
|
|||||||
data.tx_hex,
|
data.tx_hex,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
async def update_ln_to_btc(data: UpdateLnToBtcSwap) -> str:
|
async def update_ln_to_btc(data: UpdateLnToBtcSwap) -> str:
|
||||||
@@ -95,7 +94,7 @@ async def save_btc_to_ln(
|
|||||||
data: BtcToLnSwap,
|
data: BtcToLnSwap,
|
||||||
) -> BtcToLnSwap:
|
) -> BtcToLnSwap:
|
||||||
|
|
||||||
await db.execute(
|
return await db.execute(
|
||||||
"""
|
"""
|
||||||
INSERT INTO deezy.btc_to_ln_swap (
|
INSERT INTO deezy.btc_to_ln_swap (
|
||||||
ln_address,
|
ln_address,
|
||||||
@@ -114,4 +113,3 @@ async def save_btc_to_ln(
|
|||||||
data.signature,
|
data.signature,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
return
|
|
||||||
|
|||||||
Reference in New Issue
Block a user