diff --git a/docs/constants-and-vars.rst b/docs/constants-and-vars.rst index 6e2b29b141..048a3c3f5a 100644 --- a/docs/constants-and-vars.rst +++ b/docs/constants-and-vars.rst @@ -28,10 +28,6 @@ Name Type Value ``tx.gasprice`` ``uint256`` Gas price of current transaction in wei ==================== ================ ============================================= -.. note:: - - ``msg.data``, ``msg.sender`` and ``msg.value`` can only be accessed from external functions. If you require these values within a private function, they must be passed as parameters. - .. note:: ``msg.data`` requires the usage of :func:`slice ` to explicitly extract a section of calldata. If the extracted section exceeds the bounds of calldata, this will throw. You can check the size of ``msg.data`` using :func:`len `. diff --git a/docs/vyper-by-example.rst b/docs/vyper-by-example.rst index 24e7acb226..67be2f44f8 100644 --- a/docs/vyper-by-example.rst +++ b/docs/vyper-by-example.rst @@ -84,9 +84,6 @@ contract, we are provided with a built-in variable ``msg`` and we can access the public address of any method caller with ``msg.sender``. Similarly, the amount of ether a user sends can be accessed by calling ``msg.value``. -.. note:: ``msg.sender`` and ``msg.value`` can only be accessed from external - functions. If you require these values within an internal function they must be passed as parameters. - Here, we first check whether the current time is within the bidding period by comparing with the auction's start and end times using the ``assert`` function which takes any boolean statement. We also check to see if the new bid is greater @@ -419,10 +416,6 @@ Let’s move onto the constructor. :lineno-start: 53 :lines: 53-62 -.. note:: ``msg.sender`` and ``msg.value`` can only be accessed from external - functions. If you require these values within an internal function they must be - passed as parameters. - In the constructor, we hard-coded the contract to accept an array argument of exactly two proposal names of type ``bytes32`` for the contracts initialization. Because upon initialization, the ``__init__()`` method is called