diff options
author | Jacob Evans <dekz@dekz.net> | 2018-02-27 10:12:11 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-02-27 10:47:09 +0800 |
commit | 6961169f89c4cd8480aca9c720cd8299aec9bbc0 (patch) | |
tree | 51b9a6a2f0dbaee50a9758a7983fe201d5898354 /packages/deployer/test | |
parent | 3d66feb89f8e4cfcb0b5251a96d02ef31f3ae34b (diff) | |
parent | 709fa9e02ec21cee9fc145b4a578742c8dd190aa (diff) | |
download | dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.gz dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.bz2 dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.lz dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.xz dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.tar.zst dexon-sol-tools-6961169f89c4cd8480aca9c720cd8299aec9bbc0.zip |
Merge branch 'development' into feature/0x.js/lowercase-addresses
Diffstat (limited to 'packages/deployer/test')
-rw-r--r-- | packages/deployer/test/deploy_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/deployer/test/deploy_test.ts b/packages/deployer/test/deploy_test.ts index 6a8397982..422d3763e 100644 --- a/packages/deployer/test/deploy_test.ts +++ b/packages/deployer/test/deploy_test.ts @@ -4,7 +4,7 @@ import 'mocha'; import { Compiler } from '../src/compiler'; import { Deployer } from '../src/deployer'; import { fsWrapper } from '../src/utils/fs_wrapper'; -import { CompilerOptions, ContractArtifact, ContractData, DoneCallback } from '../src/utils/types'; +import { CompilerOptions, ContractArtifact, ContractNetworkData, DoneCallback } from '../src/utils/types'; import { constructor_args, exchange_binary } from './fixtures/exchange_bin'; import { constants } from './util/constants'; @@ -51,7 +51,7 @@ describe('#Compiler', () => { }; const exchangeArtifactString = await fsWrapper.readFileAsync(exchangeArtifactPath, opts); const exchangeArtifact: ContractArtifact = JSON.parse(exchangeArtifactString); - const exchangeContractData: ContractData = exchangeArtifact.networks[constants.networkId]; + const exchangeContractData: ContractNetworkData = exchangeArtifact.networks[constants.networkId]; // The last 43 bytes of the binaries are metadata which may not be equivalent const unlinkedBinaryWithoutMetadata = exchangeContractData.unlinked_binary.slice(0, -86); const exchangeBinaryWithoutMetadata = exchange_binary.slice(0, -86); @@ -68,7 +68,7 @@ describe('#Deployer', () => { }; const exchangeArtifactString = await fsWrapper.readFileAsync(exchangeArtifactPath, opts); const exchangeArtifact: ContractArtifact = JSON.parse(exchangeArtifactString); - const exchangeContractData: ContractData = exchangeArtifact.networks[constants.networkId]; + const exchangeContractData: ContractNetworkData = exchangeArtifact.networks[constants.networkId]; const exchangeAddress = exchangeContractInstance.address; expect(exchangeAddress).to.not.equal(undefined); expect(exchangeContractData.address).to.equal(undefined); @@ -84,7 +84,7 @@ describe('#Deployer', () => { }; const exchangeArtifactString = await fsWrapper.readFileAsync(exchangeArtifactPath, opts); const exchangeArtifact: ContractArtifact = JSON.parse(exchangeArtifactString); - const exchangeContractData: ContractData = exchangeArtifact.networks[constants.networkId]; + const exchangeContractData: ContractNetworkData = exchangeArtifact.networks[constants.networkId]; const exchangeAddress = exchangeContractInstance.address; expect(exchangeAddress).to.be.equal(exchangeContractData.address); expect(constructor_args).to.be.equal(exchangeContractData.constructor_args); |