Skip to content

Commit

Permalink
feat: refactor and sanitize other contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomazzara committed Mar 7, 2019
1 parent a9806ef commit c64331a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions specs/txUtils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { expect } from 'chai'
import { deployContract } from './deployContract'
import { eth, txUtils } from '../dist'
import { testGeth } from './helpers'
import { sleep } from '../dist/utils'

testGeth(provider => {
it('initializes eth provider', async () => {
Expand All @@ -13,11 +14,15 @@ testGeth(provider => {
it('should return the confirmed transaction status and its receipt', async function() {
this.timeout(100000)

await sleep(500)
const contract = await deployContract(eth.wallet, 'MANA', require('./fixtures/MANAToken.json'))
await sleep(500)

/* tslint:disable-next-line:no-unnecessary-type-assertion */
const { receipt, ...tx } = (await txUtils.getTransaction(
contract.transactionHash
)) as txUtils.ConfirmedTransaction
await sleep(500)

expect(tx).to.include.keys([
'type',
Expand Down

0 comments on commit c64331a

Please sign in to comment.