diff --git a/README.md b/README.md index cb51322..eb296d8 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ function getBlockByHash(hash: string): Promise { body: { jsonrpc: "2.0", id: 1, method: "eth_getBlockByHash", params: [hash, false] } }).then(response => response.json()); } -//function getBlockByHashCallbackStyle(hash: string, callback: (error: Error, block?: Block) => void): void { +//function getBlockByHashCallbackStyle(hash: string, callback: (error?: Error, block?: Block|null) => void): void { // fetch("http://localhost:8545", { // method: "POST", // headers: new Headers({"Content-Type": "application/json"}), @@ -32,7 +32,7 @@ function getLogs(filterOptions: FilterOptions): Promise { body: { jsonrpc: "2.0", id: 1, method: "eth_getLogs", params: [filterOptions] } }).then(response => response.json()); } -//function getLogsCallbackStyle(filterOptions: FilterOptions, callback: (error: Error, logs?: Log[]) => void): void { +//function getLogsCallbackStyle(filterOptions: FilterOptions, callback: (error?: Error, logs?: Log[]) => void): void { // return fetch("http://localhost:8545", { // method: "POST", // headers: new Headers({"Content-Type": "application/json"}),