Skip to content

Commit

Permalink
Adjust to new xian-py structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Endogen committed Feb 2, 2025
1 parent 1cf643a commit 1dba946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xian/services/bds/bds.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from contracting.stdlib.bridge.time import Datetime, Timedelta
from xian.services.bds.database import DB, result_to_json
from xian_py.decompiler import ContractDecompiler
from xian_py.wallet import key_is_valid
from xian_py.wallet import Wallet
from timeit import default_timer as timer
from decimal import Decimal

Expand Down Expand Up @@ -234,7 +234,7 @@ async def _insert_addresses(self, tx: dict, block_time: datetime):
for state_change in tx['tx_result']['state']:
if state_change['key'].startswith('currency.balances:'):
address = state_change['key'].replace('currency.balances:', '')
if key_is_valid(address):
if Wallet.is_valid_key(address):
try:
self.db.add_query_to_batch(sql.insert_addresses(), [
tx['tx_result']['hash'],
Expand Down

0 comments on commit 1dba946

Please sign in to comment.