Skip to content

Commit

Permalink
Merge branch 'FIX/TransferWA' into 'main'
Browse files Browse the repository at this point in the history
[ADD] wallet as default in incomplete transfer

See merge request kennbroorg/trackenn-back!25
  • Loading branch information
KennBro committed Nov 9, 2024
2 parents 69af5df + c71acc6 commit ce60dc6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core/eth.py
Original file line number Diff line number Diff line change
Expand Up @@ -3134,6 +3134,14 @@ def add_link(from_address, to_address, symbol, name, contract, value, action, ty
# logger.debug(colored(f"++ TRANSFER TOKEN FROM WA = {hash}", 'magenta'))
action = "transfer token from wa"

# Node
# TODO: Determine in always is a wallet
node_address = row["to"]
if (node_address not in nodes) and (node_address not in nodes_db):
tag = tags_dict.get(node_address, []) # Get tag
label = labels_dict.get(node_address, []) # Get label
add_nodes(node_address, tag, label, contract=False)

add_link(
row["from"],
row["to"],
Expand All @@ -3151,6 +3159,14 @@ def add_link(from_address, to_address, symbol, name, contract, value, action, ty
# logger.debug(colored(f"++ TRANSFER TOKEN TO WA = {hash}", 'magenta'))
action = "transfer token to wa"

# Node
# TODO: Determine in always is a wallet
node_address = row["from"]
if (node_address not in nodes) and (node_address not in nodes_db):
tag = tags_dict.get(node_address, []) # Get tag
label = labels_dict.get(node_address, []) # Get label
add_nodes(node_address, tag, label, contract=False)

add_link(
row["from"],
row["to"],
Expand Down

0 comments on commit ce60dc6

Please sign in to comment.