Skip to content

Commit 6847b05

Browse files
Merge pull request #82 from InjectiveLabs/f/fix_order_hash_computation
fix: set order hash to hex
2 parents 570efab + 28be35f commit 6847b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyinjective/orderhash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@ def compute_order_hashes(network, orders) -> [str]:
103103
keccak256 = sha3.keccak_256()
104104
keccak256.update(typed_bytes)
105105
order_hash = keccak256.hexdigest()
106-
order_hashes.append(order_hash)
106+
order_hashes.append('0x' + order_hash)
107107

108108
return order_hashes

0 commit comments

Comments
 (0)