change settings in wallets

This commit is contained in:
dni ⚡
2022-10-05 13:05:11 +02:00
parent bf566c5a26
commit ad81bb322a
10 changed files with 50 additions and 48 deletions
+4 -3
View File
@@ -2,12 +2,13 @@ import asyncio
import hashlib
import json
import random
from os import getenv
from typing import AsyncGenerator, Optional
import httpx
from loguru import logger
from lnbits.settings import settings
from .base import (
InvoiceResponse,
PaymentResponse,
@@ -27,8 +28,8 @@ class UnknownError(Exception):
class SparkWallet(Wallet):
def __init__(self):
self.url = getenv("SPARK_URL").replace("/rpc", "")
self.token = getenv("SPARK_TOKEN")
self.url = settings.spark_url.replace("/rpc", "")
self.token = settings.spark_token
def __getattr__(self, key):
async def call(*args, **kwargs):