wip fixes

This commit is contained in:
Jonathan Rainville 2018-06-29 17:09:19 -04:00 committed by Iuri Matias
parent bc3143ce62
commit 7467494591
2 changed files with 10 additions and 2 deletions

View File

@ -45,7 +45,7 @@ var Blockchain = function(options) {
whisper: (this.blockchainConfig.whisper === undefined) || this.blockchainConfig.whisper,
maxpeers: ((this.blockchainConfig.maxpeers === 0) ? 0 : (this.blockchainConfig.maxpeers || 25)),
bootnodes: this.blockchainConfig.bootnodes || "",
rpcApi: (this.blockchainConfig.rpcApi || ['eth', 'web3', 'net', 'debug']),
rpcApi: (this.blockchainConfig.rpcApi || ['eth', 'web3', 'net', 'debug', 'pubsub']),
wsRPC: (this.blockchainConfig.wsRPC === undefined) || this.blockchainConfig.wsRPC,
wsHost: dockerHostSwap(this.blockchainConfig.wsHost) || defaultHost,
wsPort: this.blockchainConfig.wsPort || 8546,

View File

@ -3,6 +3,11 @@ const SimpleStorage = require('Embark/contracts/SimpleStorage');
let accounts;
config({
deployment: {
type: 'ws',
host: 'localhost',
port: '8546'
},
contracts: {
"SimpleStorage": {
args: [100],
@ -45,7 +50,10 @@ contract("SimpleStorage", function () {
done(error);
});
SimpleStorage.methods.set2(150, 100).send();
console.log('TEST');
SimpleStorage.methods.set2(150, 100).send(() => {
console.log('Done');
});
});
});