From 664b7bfbdabef0391fd490618e38ed5c45108621 Mon Sep 17 00:00:00 2001 From: Roman Figurin Date: Mon, 11 Jul 2022 22:28:10 +0800 Subject: [PATCH 1/2] [Docs] Fixed link to internal-function-calls --- docs/contracts/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contracts/functions.rst b/docs/contracts/functions.rst index eebd1d45a8cb..94a427d72d76 100644 --- a/docs/contracts/functions.rst +++ b/docs/contracts/functions.rst @@ -79,7 +79,7 @@ Function parameters can be used as any other local variable and they can also be parameter. This functionality is possible if you enable the ABI coder v2 by adding ``pragma abicoder v2;`` to your source file. - An :ref:`internal function` can accept a + An :ref:`internal function` can accept a multi-dimensional array without enabling the feature. .. index:: return array, return string, array, string, array of strings, dynamic array, variably sized array, return struct, struct From bbf6ecf69dbd3fa8e93aad89fca15b3610cc091e Mon Sep 17 00:00:00 2001 From: Roman Figurin Date: Wed, 13 Jul 2022 09:29:14 +0800 Subject: [PATCH 2/2] [Docs] Updated a part about abicoder v2 and multi-dimensional array for external-function-calls --- docs/contracts/functions.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/contracts/functions.rst b/docs/contracts/functions.rst index 94a427d72d76..c7b7cc56b519 100644 --- a/docs/contracts/functions.rst +++ b/docs/contracts/functions.rst @@ -74,13 +74,13 @@ Function parameters can be used as any other local variable and they can also be .. note:: - An :ref:`external function` cannot accept a - multi-dimensional array as an input - parameter. This functionality is possible if you enable the ABI coder v2 - by adding ``pragma abicoder v2;`` to your source file. + Until version 0.6.0 it was not possible to use a multi-dimensional array or a struct + as an input for an :ref:`external function`. + ``abicoder v2`` made it possible and it's been enabled by default since version 0.8.0 + (before that you had to enable it with ``pragma abicoder v2;``). An :ref:`internal function` can accept a - multi-dimensional array without enabling the feature. + multi-dimensional array or a struct without any restrictions. .. index:: return array, return string, array, string, array of strings, dynamic array, variably sized array, return struct, struct