Skip to content

Commit

Permalink
Fixes types
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardonunesp committed Aug 28, 2019
1 parent 016038d commit dfb1e84
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 831 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"@types/retry": "^0.10.2",
"@types/shelljs": "^0.8.0",
"@types/tape": "^4.2.32",
"@types/web3": "^1.0.19",
"babel-cli": "^6.26.0",
"babel-loader": "^8.0.0-beta.2",
"dotenv": "^5.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/tests/e2e/loom-provider-2/loom-provider-web3-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { waitForMillisecondsAsync, getTestUrls } from '../../helpers'
import { deployContract2 } from '../../evm-helpers'
import Web3 from 'web3'
import { LoomProvider2 } from '../../../loom-provider-2'
import { BlockType } from 'web3/eth/types'

/**
* Requires the SimpleStore solidity contract deployed on a loomchain.
Expand Down Expand Up @@ -172,7 +173,7 @@ test('LoomProvider + Web3 + getBlockHash', async t => {
try {
const blockNumber = await web3.eth.getBlockNumber()
const blockInfo = await web3.eth.getBlock(blockNumber, false)
const blockInfoByHash = await web3.eth.getBlock(blockInfo.hash, false)
const blockInfoByHash = await web3.eth.getBlock(blockInfo.hash as BlockType, false)
t.assert(blockInfoByHash, 'Should return block info by hash')
} catch (err) {
t.error(err)
Expand Down
41 changes: 0 additions & 41 deletions src/types/web3/eth/abi.d.ts

This file was deleted.

80 changes: 0 additions & 80 deletions src/types/web3/eth/accounts.d.ts

This file was deleted.

67 changes: 0 additions & 67 deletions src/types/web3/eth/contract.d.ts

This file was deleted.

Loading

0 comments on commit dfb1e84

Please sign in to comment.