From d45ae488844c677f5b87d5f9c4bdb0805d92b25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Sporny?= Date: Thu, 9 Jan 2025 16:06:28 +0100 Subject: [PATCH] Revert "test: reduce number of substrate calls in tests" This reverts commit 637d0ed983f81bdf45c2b6604d3832c99df37519. --- E2E-tests/src/substrate_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/E2E-tests/src/substrate_api.py b/E2E-tests/src/substrate_api.py index 0b25d6bf9..e31760eec 100644 --- a/E2E-tests/src/substrate_api.py +++ b/E2E-tests/src/substrate_api.py @@ -647,7 +647,8 @@ def get_block_header(self, block_no): return self.substrate.get_block_header(block_number=block_no)["header"] def get_block(self, block_no): - return self.substrate.get_block(block_number=block_no) + block_hash = self.substrate.get_block_hash(block_no) + return self.substrate.get_block(block_hash) def get_block_author(self, block_number): """Custom implementation of substrate.get_block(include_author=True) to get block author.