aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-09 07:09:10 +0800
committerGitHub <noreply@github.com>2018-08-09 07:09:10 +0800
commitb4e33ec25ceb35b53876ad6af58148079dcbeeb7 (patch)
treee25198dc0f71b60131eecc725c2de67624662e96
parent5cd5a9652cfef6b6b318916ae74cd290b69f5187 (diff)
parentcfc745de05b015f4bbcd11c04819821f77022c48 (diff)
downloaddexon-solidity-b4e33ec25ceb35b53876ad6af58148079dcbeeb7.tar.gz
dexon-solidity-b4e33ec25ceb35b53876ad6af58148079dcbeeb7.tar.zst
dexon-solidity-b4e33ec25ceb35b53876ad6af58148079dcbeeb7.zip
Merge pull request #4778 from ethereum/dynamicArraysDocs
Change note about returning dynamic arrays.
-rw-r--r--docs/types.rst13
1 files changed, 5 insertions, 8 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 5c4a30ca..208966be 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -725,14 +725,11 @@ Members
.. warning::
It is not yet possible to use arrays of arrays in external functions.
-.. warning::
- Due to limitations of the EVM, it is not possible to return
- dynamic content from external function calls. The function ``f`` in
- ``contract C { function f() returns (uint[]) { ... } }`` will return
- something if called from web3.js, but not if called from Solidity.
-
- The only workaround for now is to use large statically-sized arrays.
-
+.. note::
+ In EVM versions before Byzantium, it was not possible to access
+ dynamic arrays return from function calls. If you call functions
+ that return dynamic arrays, make sure to use an EVM that is set to
+ Byzantium mode.
::