Commit 5f37937c authored by Moul's avatar Moul

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

parent 61cea4dd
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment