Fix oracle callback example

This commit is contained in:
Alex Beregszaszi 2016-11-21 13:16:35 +00:00
parent 42a84946d2
commit 81eea45c2d

View File

@ -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);
}