Skip to content

Commit

Permalink
cb() is not defined fix for maiinet
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Nov 27, 2017
1 parent ddb3a75 commit 8f2f343
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function addValidator(web3, validatorViewObj, contractAddr, abi) {
let ValidatorsManager = attachToContract(web3, abi, contractAddr)
console.log("attach to oracles contract");
if (!ValidatorsManager) {
return cb();
return console.log("ValidatorsStorage contract is undefined");
}

console.log(validatorViewObj);
Expand Down Expand Up @@ -223,7 +223,7 @@ function createKeys(web3, keys, contractAddr, abi) {
let KeysStorage = attachToContract(web3, abi, contractAddr)
console.log("attach to oracles contract");
if (!KeysStorage) {
return cb();
return console.log("KeysStorage contract is undefined");
}

var gasPrice = web3.utils.toWei(new web3.utils.BN(1), 'gwei')
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/application/addValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function addValidator(web3, validatorViewObj, contractAddr, abi) {
let ValidatorsManager = attachToContract(web3, abi, contractAddr)
console.log("attach to oracles contract");
if (!ValidatorsManager) {
return cb();
return console.log("ValidatorsStorage contract is undefined");
}

console.log(validatorViewObj);
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/application/createKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function createKeys(web3, keys, contractAddr, abi) {
let KeysStorage = attachToContract(web3, abi, contractAddr)
console.log("attach to oracles contract");
if (!KeysStorage) {
return cb();
return console.log("KeysStorage contract is undefined");
}

var gasPrice = web3.utils.toWei(new web3.utils.BN(1), 'gwei')
Expand Down

0 comments on commit 8f2f343

Please sign in to comment.