Skip to content

Commit

Permalink
fix dataclass
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Nov 8, 2023
1 parent 8cb5373 commit 7e99d01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boltz_client/boltz.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" boltz_client main module """

import asyncio
from dataclasses import dataclass
from dataclasses import dataclass, field
from enum import Enum
from math import ceil, floor
from typing import Optional
Expand Down Expand Up @@ -98,7 +98,7 @@ class BoltzReverseSwapResponse:
@dataclass
class BoltzConfig:
network: str = "main"
pairs: list = ["BTC/BTC", "L-BTC/BTC"]
pairs: list = field(default_factory=lambda: ["BTC/BTC", "L-BTC/BTC"])
api_url: str = "https://boltz.exchange/api"
mempool_url: str = "https://mempool.space/api/v1"
mempool_ws_url: str = "wss://mempool.space/api/v1/ws"
Expand Down
1 change: 1 addition & 0 deletions boltz_client/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

# use for manual testing
config = BoltzConfig(
pairs=["BTC/BTC", "L-BTC/BTC"],
network="regtest",
api_url="http://localhost:9001",
mempool_url="http://localhost:8999/api/v1",
Expand Down

0 comments on commit 7e99d01

Please sign in to comment.