diff --git a/test/functional/feature_evm.py b/test/functional/feature_evm.py index b2da3bcbbd..8cd34db7c0 100755 --- a/test/functional/feature_evm.py +++ b/test/functional/feature_evm.py @@ -337,11 +337,11 @@ def run_test(self): eth_fee = eth_block['gasUsed'][2:] block = self.nodes[0].getblock(self.nodes[0].getblockhash(self.nodes[0].getblockcount())) raw_tx = self.nodes[0].getrawtransaction(block['tx'][0], 1) - block_hash = raw_tx['vout'][1]['scriptPubKey']['hex'][4:68] + block_hash = raw_tx['vout'][1]['scriptPubKey']['hex'][20:84] assert_equal(block_hash, eth_hash) # Check EVM miner fee - opreturn_fee_amount = raw_tx['vout'][1]['scriptPubKey']['hex'][68:] + opreturn_fee_amount = raw_tx['vout'][1]['scriptPubKey']['hex'][84:] opreturn_fee_sats = Decimal(int(opreturn_fee_amount[2:4] + opreturn_fee_amount[0:2], 16)) / 100000000 eth_fee_sats = Decimal(int(eth_fee, 16)) / 1000000000 assert_equal(opreturn_fee_sats, eth_fee_sats)