Skip to content
Permalink
Browse files

fix: imports and lints for new contract structure

  • Loading branch information...
satello committed Apr 4, 2018
1 parent 6d61178 commit 19c046194a453f56839fcc479d7a768f2972c482
Showing with 9 additions and 6 deletions.
  1. +2 −2 src/contracts/implementations/index.js
  2. +7 −4 src/kleros.js
@@ -1,6 +1,6 @@
import * as arbitrator from './arbitrator'
import * as arbitrableContracts from './arbitrableContracts'
import * as arbitrable from './arbitrable'
import * as PNK from './PNK'
import * as RNG from './RNG'

export { arbitrator, arbitrableContracts, PNK, RNG }
export { arbitrator, arbitrable, PNK, RNG }
@@ -32,11 +32,11 @@ class Kleros {
arbitrableContractAddress
) {
// NOTE we default to KlerosPOC and ArbitrableTransaction
const _klerosPOC = new contracts.arbitrator.KlerosPOC(
const _klerosPOC = new contracts.implementations.arbitrator.KlerosPOC(
ethereumProvider,
arbitratorAddress
)
const _arbitrableTransaction = new contracts.arbitrableContracts.ArbitrableTransaction(
const _arbitrableTransaction = new contracts.implementations.arbitrable.ArbitrableTransaction(
ethereumProvider,
arbitrableContractAddress
)
@@ -48,9 +48,12 @@ class Kleros {
this.web3Wrapper = new Web3Wrapper(ethereumProvider)
this.storeWrapper = new StoreProviderWrapper(storeUri)
// ARBITRATOR
this.arbitrator = new contracts.Arbitrator(_klerosPOC, this.storeWrapper)
this.arbitrator = new contracts.abstractions.Arbitrator(
_klerosPOC,
this.storeWrapper
)
// ARBITRABLE CONTRACTS
this.arbitrableContracts = new contracts.ArbitrableContracts(
this.arbitrableContracts = new contracts.abstractions.ArbitrableContracts(
_arbitrableTransaction,
this.storeWrapper
)

0 comments on commit 19c0461

Please sign in to comment.
You can’t perform that action at this time.