We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e6ba6e commit 9d96252Copy full SHA for 9d96252
src/dipdup/abi/cairo.py
@@ -57,7 +57,7 @@ def sn_keccak(x: str) -> str:
57
58
# NOTE: Create keccak256 hash in bytes and return hex representation of the first 250 bits.
59
keccak_hash = keccak.new(data=x.encode('ascii'), digest_bits=256).digest()
60
- return f'0x{int.from_bytes(keccak_hash, "big") & (1 << 248) - 1:x}'
+ return f'0x{int.from_bytes(keccak_hash, "big") & (1 << 250) - 1:x}'
61
62
63
@cache
0 commit comments