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
Uh oh!
There was an error while loading. Please reload this page.
-
I'm proposing a
fromHexvariant and shortcut function calledtoAddressthat takes aHexstring and converts to anAddress.Use case would be reading a raw storage slot of solidity type
addresswhich 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