From 37750fdb9909f4bec37e04fa5942449ffc840e41 Mon Sep 17 00:00:00 2001 From: Bean Date: Sat, 16 Sep 2023 20:59:51 -0500 Subject: [PATCH] Update types.rst Data location must be "memory" or "calldata" for parameter in function --- types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.rst b/types.rst index a6766a5..0260ff5 100644 --- a/types.rst +++ b/types.rst @@ -599,7 +599,7 @@ Solidity 中是没有八进制的,因此前置 0 是无效的。 function f() public pure { g([uint(1), 2, 3]); } - function g(uint[3] _data) public pure { + function g(uint[3] memory _data) public pure { // ... } }