Skip to content

Commit

Permalink
Revert "test: reduce number of substrate calls in tests"
Browse files Browse the repository at this point in the history
This reverts commit 637d0ed.
  • Loading branch information
rsporny committed Jan 9, 2025
1 parent 637d0ed commit d45ae48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion E2E-tests/src/substrate_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d45ae48

Please sign in to comment.