From 2ca33e4a853c984ad352edf26fcb2c095671bf80 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 30 Oct 2024 07:03:04 +0400 Subject: [PATCH] Fix qtum_evm_globals.py --- test/functional/qtum_evm_globals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/qtum_evm_globals.py b/test/functional/qtum_evm_globals.py index 8f9d417ffc..2369aa69df 100755 --- a/test/functional/qtum_evm_globals.py +++ b/test/functional/qtum_evm_globals.py @@ -85,7 +85,7 @@ def verify_evm_globals_test(self, use_staking=False): coinstake_pubkey = hex_str_to_bytes(coinbase_tx['vout'][authorTxIndexAndVoutIndex]['scriptPubKey']['asm'].split(' ')[0]) coinbase_pkh = bytes_to_hex_str(hash160(coinstake_pubkey)) else: - coinbase_address = coinbase_tx['vout'][authorTxIndexAndVoutIndex]['scriptPubKey']['addresses'][0] + coinbase_address = coinbase_tx['vout'][authorTxIndexAndVoutIndex]['scriptPubKey']['address'] coinbase_pkh = p2pkh_to_hex_hash(coinbase_address) #for i in range(self.node.getblockcount(), 0, -1): @@ -216,7 +216,7 @@ def run_test(self): self.contract_address = self.node.createcontract(bytecode)['address'] print('verify globals in PoW blocks') - self.verify_evm_globals_test(use_staking=True) + self.verify_evm_globals_test(use_staking=False) self.sync_all() generatesynchronized(self.node, 257, None, self.nodes)