diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-04-10 11:02:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 11:02:55 +0800 |
commit | 70d403e6f8c56bc70e6d3471a770b9bbff5d72e7 (patch) | |
tree | 2ab49214ca5f1aef196d1899de8091908feabb82 /packages/deployer/test/deployer_test.ts | |
parent | 073bf738ddb271b6b4158798baf4cac3cb0608e9 (diff) | |
parent | eecf09f51564df4f63139f26e65efa1102a9958d (diff) | |
download | dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.gz dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.bz2 dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.lz dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.xz dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.tar.zst dexon-sol-tools-70d403e6f8c56bc70e6d3471a770b9bbff5d72e7.zip |
Merge pull request #493 from hysz/features/deployer/multipleCodebaseSupport
Deployer: Support for External Codebases + Overloaded Function Names
Diffstat (limited to 'packages/deployer/test/deployer_test.ts')
-rw-r--r-- | packages/deployer/test/deployer_test.ts | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/packages/deployer/test/deployer_test.ts b/packages/deployer/test/deployer_test.ts index 9c34d74aa..050cf7d02 100644 --- a/packages/deployer/test/deployer_test.ts +++ b/packages/deployer/test/deployer_test.ts @@ -4,7 +4,13 @@ import 'mocha'; import { Compiler } from '../src/compiler'; import { Deployer } from '../src/deployer'; import { fsWrapper } from '../src/utils/fs_wrapper'; -import { CompilerOptions, ContractArtifact, ContractNetworkData, DoneCallback } from '../src/utils/types'; +import { + CompilerOptions, + ContractArtifact, + ContractDirectory, + ContractNetworkData, + DoneCallback, +} from '../src/utils/types'; import { constructor_args, exchange_binary } from './fixtures/exchange_bin'; import { constants } from './util/constants'; @@ -13,11 +19,15 @@ const expect = chai.expect; describe('#Deployer', () => { const artifactsDir = `${__dirname}/fixtures/artifacts`; - const contractsDir = `${__dirname}/fixtures/contracts`; const exchangeArtifactPath = `${artifactsDir}/Exchange.json`; + const mainContractDir: ContractDirectory = { path: `${__dirname}/fixtures/contracts/main`, namespace: '' }; + const baseContractDir: ContractDirectory = { path: `${__dirname}/fixtures/contracts/base`, namespace: 'base' }; + const contractDirs: Set<ContractDirectory> = new Set(); + contractDirs.add(mainContractDir); + contractDirs.add(baseContractDir); const compilerOpts: CompilerOptions = { artifactsDir, - contractsDir, + contractDirs, networkId: constants.networkId, optimizerEnabled: constants.optimizerEnabled, specifiedContracts: new Set(constants.specifiedContracts), |