Skip to content

Commit

Permalink
rpc tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jul 17, 2023
1 parent ede060b commit 7f39073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion qa/rpc-tests/lelantus_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def run_test(self):

assert_raises_message(
JSONRPCException,
"Lelantus is not activated yet",
"Lelantus is not active",
self.nodes[0].mintlelantus, 1)

self.nodes[0].generate(activation_block - self.nodes[0].getblockcount())
Expand Down
4 changes: 2 additions & 2 deletions qa/rpc-tests/spark_spend_gettransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run_test(self):
assert balance['availableBalance'] / 1e8 == 10

# case 1: Spend many with watchonly address
spendto_wo_id = self.nodes[0].spendspark({watchonly_address: {"amount": 1, "subtractFee": False}}, {})
spendto_wo_id = self.nodes[0].spendspark({watchonly_address: {"amount": 1, "subtractFee": False}})
spendto_wo_tx = self.nodes[0].gettransaction(spendto_wo_id)

assert int(spendto_wo_tx['amount']) == int('-1')
Expand All @@ -48,7 +48,7 @@ def run_test(self):
assert spendto_wo_tx['details'][0]['involvesWatchonly']

# case 2: Spend many with watchonly address and valid address
spendto_wo_and_valid_id = self.nodes[0].spendspark({watchonly_address: {"amount": 1, "subtractFee": False}}, {sparkAddress: {"amount": 0.01, "memo": "Test", "subtractFee": False}})
spendto_wo_and_valid_id = self.nodes[0].spendspark({watchonly_address: {"amount": 1, "subtractFee": False}, sparkAddress: {"amount": 0.01, "memo": "Test", "subtractFee": False}})
spendto_wo_and_valid_tx = self.nodes[0].gettransaction(spendto_wo_and_valid_id)

assert int(spendto_wo_and_valid_tx['amount']) == int(-1)
Expand Down

0 comments on commit 7f39073

Please sign in to comment.