From ea4444edbea63f490fb3215a65ec13effb3ad17f Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 25 Mar 2019 22:32:34 -0400 Subject: [PATCH] fix internal transaction api test --- tests/integration/test_internal_transaction_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_internal_transaction_api.py b/tests/integration/test_internal_transaction_api.py index de5527d16..c425d2734 100644 --- a/tests/integration/test_internal_transaction_api.py +++ b/tests/integration/test_internal_transaction_api.py @@ -4,7 +4,7 @@ from torba.testcase import IntegrationTestCase import lbrynet.wallet from lbrynet.schema.claim import Claim -from lbrynet.wallet.transaction import Transaction, Output +from lbrynet.wallet.transaction import Transaction, Output, Input from lbrynet.wallet.dewies import dewies_to_lbc as d2l, lbc_to_dewies as l2d @@ -63,7 +63,7 @@ class BasicTransactionTest(IntegrationTestCase): self.assertIn('lbry://@bar/foo', response) self.assertIn('claim', response['lbry://@bar/foo']) - abandon_tx = await Transaction.abandon([stream_tx.outputs[0]], [self.account], self.account) + abandon_tx = await Transaction.create([Input.spend(stream_tx.outputs[0])], [], [self.account], self.account) await self.broadcast(abandon_tx) await self.ledger.wait(abandon_tx) await self.blockchain.generate(1)