A utility function toAddress
#703
Unanswered
hexcowboy
asked this question in
Idea / Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm proposing a
fromHex
variant and shortcut function calledtoAddress
that takes aHex
string and converts to anAddress
.Use case would be reading a raw storage slot of solidity type
address
which returns something like0x0000000000000000000000005eb5babcefea846b220c82f222f00df95934f5f0
. Right now there isn't a direct way to convert this to a 20 byte address.Let me know if I get the green light for a PR!
Beta Was this translation helpful? Give feedback.
All reactions