Last active
July 11, 2018 16:03
-
-
Save tzumby/592df7c32d752667ebac0a3914e10848 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:ok, address } = | |
"0x456196dfa8eb4534669a01c5933c3bba2ba0d018" | |
|> String.slice(2..-1) | |
|> Base.decode16(case: :mixed) | |
data = ABI.encode("balanceOf(address)", [address]) | |
|> Base.encode16(case: :lower) | |
# 70a08231000000000000000000000000456196dfa8eb4534669a01c5933c3bba2ba0d018 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment