diff --git a/types/web3/eth/index.d.ts b/types/web3/eth/index.d.ts index 1ed2a1094b..8d7a5fc823 100644 --- a/types/web3/eth/index.d.ts +++ b/types/web3/eth/index.d.ts @@ -122,7 +122,7 @@ export default interface Eth { fromBlock?: BlockType; toBlock?: BlockType; address?: string; - topics?: Array; + topics?: Array; }, cb?: Callback ): Promise; diff --git a/types/web3/web3-tests.ts b/types/web3/web3-tests.ts index de314a2f82..e7f8787f8c 100644 --- a/types/web3/web3-tests.ts +++ b/types/web3/web3-tests.ts @@ -1,6 +1,6 @@ import Web3 = require("web3"); import BigNumber = require("bn.js"); -import { TransactionReceipt } from "web3/types"; +import { TransactionReceipt, Log } from "web3/types"; import PromiEvent from "web3/promiEvent"; import { NEW_ABI_STANDARD, OLD_ABI_STANDARD } from "web3/test/abi-tests"; import { Provider, JsonRPCResponse } from "web3/providers"; @@ -37,6 +37,14 @@ web3.eth.setProvider(myProvider); // // web3.eth // -------------------------------------------------------------------------- +const logs: Promise = web3.eth.getPastLogs({ + fromBlock: "latest", + address: contractAddress, + topics: [ + null, + "0x1" + ] +}); const storage: Promise = web3.eth.getStorageAt(contractAddress, 0); const balance1: Promise = web3.eth.getBalance(contractAddress); const balance2: Promise = web3.eth.getBalance(contractAddress, "latest");