From 81eea45c2df6c29cd6e8c2258b10d44b9c058962 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 21 Nov 2016 13:16:35 +0000 Subject: Fix oracle callback example --- docs/types.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/types.rst') diff --git a/docs/types.rst b/docs/types.rst index 693e2095..9f3b4dc1 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -368,11 +368,11 @@ Another example that uses external function types:: contract Oracle { struct Request { bytes data; - function(bytes) external callback; + function(bytes memory) external callback; } Request[] requests; event NewRequest(uint); - function query(bytes data, function(bytes) external callback) { + function query(bytes data, function(bytes memory) external callback) { requests.push(Request(data, callback)); NewRequest(requests.length - 1); } -- cgit