Skip to content

Commit

Permalink
Adds ethereum tests
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Russo <[email protected]>
  • Loading branch information
russanto committed Oct 8, 2019
1 parent 1e1d786 commit 1d3fba6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ matrix:
include:
- env: BENCHMARK=composer
- env: BENCHMARK=fabric
- env: BENCHMARK=ethereum
dist: trusty
before_install: |
set -ev
Expand Down
4 changes: 2 additions & 2 deletions packages/caliper-ethereum/lib/ethereum.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Ethereum extends BlockchainInterface {
let contractData = require(CaliperUtils.resolvePath(this.ethereumConfig.contracts[key].path, this.workspaceRoot)); // TODO remove path property
this.ethereumConfig.contracts[key].abi = contractData.abi;
promises.push(new Promise(async function(resolve, reject) {
let contractInstance = await self.deployContract(contractData)
let contractInstance = await self.deployContract(contractData);
logger.info('Deployed contract ' + contractData.name + ' at ' + contractInstance.options.address);
self.ethereumConfig.contracts[key].address = contractInstance.options.address;
resolve(contractInstance);
Expand Down Expand Up @@ -199,7 +199,7 @@ class Ethereum extends BlockchainInterface {
verb: fcn,
args: [key],
isView: true
}
};
return this.sendTransaction(context, contractID, contractVer, methodCall, 60);
}

Expand Down

0 comments on commit 1d3fba6

Please sign in to comment.