Introduce address(...).code

This commit is contained in:
Alex Beregszaszi
2020-12-11 03:00:30 +00:00
parent 4b410b8731
commit 7b347b9ec2
10 changed files with 90 additions and 2 deletions
+1
View File
@@ -115,6 +115,7 @@ Global Variables
- ``super``: the contract one level higher in the inheritance hierarchy
- ``selfdestruct(address payable recipient)``: destroy the current contract, sending its funds to the given address
- ``<address>.balance`` (``uint256``): balance of the :ref:`address` in Wei
- ``<address>.code`` (``bytes memory``): code at the :ref:`address` (can be empty)
- ``<address>.codehash`` (``bytes32``): the codehash of the :ref:`address`
- ``<address payable>.send(uint256 amount) returns (bool)``: send given amount of Wei to :ref:`address`,
returns ``false`` on failure
+3
View File
@@ -222,6 +222,9 @@ Members of Address Types
``<address>.balance`` (``uint256``)
balance of the :ref:`address` in Wei
``<address>.code`` (``bytes memory``)
code at the :ref:`address` (can be empty)
``<address>.codehash`` (``bytes32``)
the codehash of the :ref:`address`