Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Nov 2, 2023
1 parent f29bea9 commit 6947fca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/rpc_fundrawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
assert_raises_rpc_error,
count_bytes,
find_vout_for_address,
satoshi_round,
)


Expand Down Expand Up @@ -158,6 +159,9 @@ def test_simple_two_outputs(self):
totalOut = 0
for out in dec_tx['vout']:
totalOut += out['value']
address = out['scriptPubKey']['addresses'][0]
if address in outputs.keys():
assert_equal(satoshi_round(outputs[address]), out['value'])

assert len(dec_tx['vin']) > 0
assert_equal(dec_tx['vin'][0]['scriptSig']['hex'], '')
Expand Down

0 comments on commit 6947fca

Please sign in to comment.