Skip to content
Snippets Groups Projects
Commit 5f37937c authored by Moul's avatar Moul
Browse files

[mod] #214: Use InputSource.from_inline()

parent 61cea4dd
No related branches found
No related tags found
No related merge requests found
......@@ -165,16 +165,7 @@ async def get_sources(pubkey):
listinput.append(inputgenerated)
for input in pending["inputs"]:
input_splitted = input.split(":")
pending_sources.append(
InputSource(
amount=int(input_splitted[0]),
base=int(input_splitted[1]),
source=input_splitted[2],
origin_id=input_splitted[3],
index=int(input_splitted[4]),
)
)
pending_sources.append(InputSource.from_inline(input))
# remove input already used
for input in listinput:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment