diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-07 20:46:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 20:46:28 +0800 |
commit | a9c5488620148c7ddc576bf99e02c25397230906 (patch) | |
tree | 3d86a42696ffb26c361d46dd54b6c3bce296ed09 /packages/deployer/test/compiler_test.ts | |
parent | 69a6166b6a1d39afc24b8dd950ec5d8539a03420 (diff) | |
parent | 906af858a5b013927e06ebafdad12d13ba674932 (diff) | |
download | dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.gz dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.bz2 dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.lz dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.xz dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.tar.zst dexon-sol-tools-a9c5488620148c7ddc576bf99e02c25397230906.zip |
Merge pull request #537 from 0xProject/feature/artifacts-v2
Implement the new artifacts format
Diffstat (limited to 'packages/deployer/test/compiler_test.ts')
-rw-r--r-- | packages/deployer/test/compiler_test.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/deployer/test/compiler_test.ts b/packages/deployer/test/compiler_test.ts index b03ae7935..9baf433d4 100644 --- a/packages/deployer/test/compiler_test.ts +++ b/packages/deployer/test/compiler_test.ts @@ -18,9 +18,7 @@ describe('#Compiler', function() { const compilerOpts: CompilerOptions = { artifactsDir, contractsDir, - networkId: constants.networkId, - optimizerEnabled: constants.optimizerEnabled, - specifiedContracts: new Set(constants.specifiedContracts), + contracts: constants.contracts, }; const compiler = new Compiler(compilerOpts); beforeEach((done: DoneCallback) => { @@ -38,9 +36,8 @@ describe('#Compiler', function() { }; const exchangeArtifactString = await fsWrapper.readFileAsync(exchangeArtifactPath, opts); const exchangeArtifact: ContractArtifact = JSON.parse(exchangeArtifactString); - const exchangeContractData: ContractNetworkData = exchangeArtifact.networks[constants.networkId]; // The last 43 bytes of the binaries are metadata which may not be equivalent - const unlinkedBinaryWithoutMetadata = exchangeContractData.bytecode.slice(0, -86); + const unlinkedBinaryWithoutMetadata = exchangeArtifact.compilerOutput.evm.bytecode.object.slice(0, -86); const exchangeBinaryWithoutMetadata = exchange_binary.slice(0, -86); expect(unlinkedBinaryWithoutMetadata).to.equal(exchangeBinaryWithoutMetadata); }); |