Global Objects
Special global variables
along with msg.sender
there are other msg
special global variables that are useful:
msg.data
— The completecalldata
which is a non-modifiable, non-persistent area where function arguments are stored and behave mostly likememory
msg.gas
— Returns the available gas remaining for a current transaction (you can learn more about gas in Ethereum here)msg.sig
— The first four bytes of the calldata for a function that specifies the function to be called (i.e., function selector)msg.value
— The amount of wei sent with a message to a contract (wei is a denomination of ETH)
Last updated