diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-21 21:16:35 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-21 21:16:35 +0800 |
commit | 81eea45c2df6c29cd6e8c2258b10d44b9c058962 (patch) | |
tree | 01eb2ff06b95466f979eb1821ae75323e7ea3309 | |
parent | 42a84946d2dca1880082a07d6408f5b88b966f9c (diff) | |
download | dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.tar dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.tar.gz dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.tar.bz2 dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.tar.lz dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.tar.xz dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.tar.zst dexon-solidity-81eea45c2df6c29cd6e8c2258b10d44b9c058962.zip |
Fix oracle callback example
-rw-r--r-- | docs/types.rst | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |