Where are contract globals like msg.sender and block.number stored?
It is in memory or storage?
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 community
These aren't stored in memory or the storage. There exists special opcodes in the EVM (machine level instructions) that push the equivalent values to the stack. See page 29 of the of the whitepaper to see all of these environment information opcodes.