Skip to content

Commit

Permalink
Merge pull request #40 from cowprotocol/fix-tx-hash
Browse files Browse the repository at this point in the history
fix tx hash error
  • Loading branch information
harisang authored Aug 23, 2024
2 parents 4894479 + 1d496ab commit e14cbcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requests==2.31.0
web3>=6.0.0
web3==7.0.0
pandas==2.2.1
SQLAlchemy==2.0.28
psycopg2==2.9.9
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/blockchain_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_tx_hashes_blocks(
block = self.web3.eth.get_block(block_number, full_transactions=True)
for tx in block.transactions: # type: ignore[attr-defined]
if tx.to and tx.to.lower() == SETTLEMENT_CONTRACT_ADDRESS.lower():
tx_hashes_blocks.append((tx.hash.hex(), block_number))
tx_hashes_blocks.append((tx.hash.to_0x_hex(), block_number))
return tx_hashes_blocks

def get_auction_id(self, tx_hash: str) -> int:
Expand Down

0 comments on commit e14cbcf

Please sign in to comment.