Following these details on the values that make part of the calldata that goes into an L2 message in Arbitrum:
https://developer.offchainlabs.com/docs/arbos_formats#l2-messages
How do you convert/cast an address
to an uint256
?
Thanks!
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityFollowing these details on the values that make part of the calldata that goes into an L2 message in Arbitrum:
https://developer.offchainlabs.com/docs/arbos_formats#l2-messages
How do you convert/cast an address
to an uint256
?
Thanks!
Solution:
uint256(uint160(xAddr))