Skip to content

Commit bbf6ecf

Browse files
xromromcameel
authored andcommitted
[Docs] Updated a part about abicoder v2 and multi-dimensional array for external-function-calls
1 parent 664b7bf commit bbf6ecf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/contracts/functions.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ Function parameters can be used as any other local variable and they can also be
7474

7575
.. note::
7676

77-
An :ref:`external function<external-function-calls>` cannot accept a
78-
multi-dimensional array as an input
79-
parameter. This functionality is possible if you enable the ABI coder v2
80-
by adding ``pragma abicoder v2;`` to your source file.
77+
Until version 0.6.0 it was not possible to use a multi-dimensional array or a struct
78+
as an input for an :ref:`external function<external-function-calls>`.
79+
``abicoder v2`` made it possible and it's been enabled by default since version 0.8.0
80+
(before that you had to enable it with ``pragma abicoder v2;``).
8181

8282
An :ref:`internal function<internal-function-calls>` can accept a
83-
multi-dimensional array without enabling the feature.
83+
multi-dimensional array or a struct without any restrictions.
8484

8585
.. index:: return array, return string, array, string, array of strings, dynamic array, variably sized array, return struct, struct
8686

0 commit comments

Comments
 (0)