Skip to content

Instantly share code, notes, and snippets.

@Aviksaikat
Last active May 20, 2024 07:43
Show Gist options
  • Save Aviksaikat/5240288ea65ba8f7768dca23cb1c1805 to your computer and use it in GitHub Desktop.
Save Aviksaikat/5240288ea65ba8f7768dca23cb1c1805 to your computer and use it in GitHub Desktop.
bytes32 to int(uint256)
from brownie import web3
web3.toInt(bytes32Data)
# ape
from ape import convert
convert(bytes32Data, int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment