Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions test/functional/feature_any_accounts_to_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,11 @@ def run_test(self):
self.nodes[0].generate(1)

for token in tokens:
token_bal = minterAccountBalances[token["tokenId"]]
if i == wallet1_accs_count - 1: # last account
amount = minterAccountBalances[token["tokenId"]]
amount = token_bal
else:
amount = random.randint(
0, minterAccountBalances[token["tokenId"]] // 2
)
amount = random.randint(0, int(token_bal // 2))

if amount == 0:
continue
Expand Down
2 changes: 1 addition & 1 deletion test/functional/feature_poolswap_mechanism.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def poolswap(self, nodes):
self.nodes[0].generate(1)
self.sync_blocks(nodes)

amount = random.randint(1, (self.AMOUNT_TOKEN / 2) // 2)
amount = random.randint(1, int((self.AMOUNT_TOKEN / 2) // 2))
amountsB = {}
reserveA = self.nodes[0].getpoolpair(pool, True)[idPool]["reserveA"]
reserveB = self.nodes[0].getpoolpair(pool, True)[idPool]["reserveB"]
Expand Down