Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ethereumjs/ethereumjs-blockstream
Browse files Browse the repository at this point in the history
  • Loading branch information
tinybike committed Apr 4, 2017
2 parents e0c8248 + 628d7e7 commit 0809473
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function getBlockByHash(hash: string): Promise<Block|null> {
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"}),
Expand All @@ -32,7 +32,7 @@ function getLogs(filterOptions: FilterOptions): Promise<Log[]> {
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"}),
Expand Down

0 comments on commit 0809473

Please sign in to comment.