fix pipeline not building by removing the `once`s
This commit is contained in:
parent
4669922090
commit
876a9a3103
|
@ -35,14 +35,14 @@ class CodeGenerator {
|
||||||
listenToCommands() {
|
listenToCommands() {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
|
||||||
this.events.setCommandHandlerOnce('provider-code', function(cb) {
|
this.events.setCommandHandler('provider-code', function(cb) {
|
||||||
let providerCode = self.generateProvider(false);
|
let providerCode = self.generateProvider(false);
|
||||||
|
|
||||||
cb(providerCode);
|
cb(providerCode);
|
||||||
});
|
});
|
||||||
|
|
||||||
// new events
|
// new events
|
||||||
this.events.setCommandHandlerOnce('code-vanila', function(cb) {
|
this.events.setCommandHandler('code-vanila', function(cb) {
|
||||||
self.events.request("contracts:list", (contractsList) => {
|
self.events.request("contracts:list", (contractsList) => {
|
||||||
let vanillaABI = self.generateABI(contractsList, {useEmbarkJS: false});
|
let vanillaABI = self.generateABI(contractsList, {useEmbarkJS: false});
|
||||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||||
|
@ -50,7 +50,7 @@ class CodeGenerator {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.events.setCommandHandlerOnce('code', function(cb) {
|
this.events.setCommandHandler('code', function(cb) {
|
||||||
self.events.request("contracts:list", (contractsList) => {
|
self.events.request("contracts:list", (contractsList) => {
|
||||||
let embarkJSABI = self.generateABI(contractsList, {useEmbarkJS: true});
|
let embarkJSABI = self.generateABI(contractsList, {useEmbarkJS: true});
|
||||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||||
|
@ -58,7 +58,7 @@ class CodeGenerator {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.events.setCommandHandlerOnce('code-contracts-vanila', function(cb) {
|
this.events.setCommandHandler('code-contracts-vanila', function(cb) {
|
||||||
self.events.request("contracts:list", (contractsList) => {
|
self.events.request("contracts:list", (contractsList) => {
|
||||||
let vanillaContractsABI = self.generateContracts(contractsList, false, true, false);
|
let vanillaContractsABI = self.generateContracts(contractsList, false, true, false);
|
||||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||||
|
@ -66,7 +66,7 @@ class CodeGenerator {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.events.setCommandHandlerOnce('code-vanila-deployment', function(cb) {
|
this.events.setCommandHandler('code-vanila-deployment', function(cb) {
|
||||||
self.events.request("contracts:list", (contractsList) => {
|
self.events.request("contracts:list", (contractsList) => {
|
||||||
let vanillaABI = self.generateABI(contractsList, {useEmbarkJS: false, deployment: true});
|
let vanillaABI = self.generateABI(contractsList, {useEmbarkJS: false, deployment: true});
|
||||||
let contractsJSON = self.generateContractsJSON(contractsList);
|
let contractsJSON = self.generateContractsJSON(contractsList);
|
||||||
|
@ -74,7 +74,7 @@ class CodeGenerator {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.events.setCommandHandlerOnce('code-generator:web3js', function(cb) {
|
this.events.setCommandHandler('code-generator:web3js', function(cb) {
|
||||||
self.buildWeb3JS(cb);
|
self.buildWeb3JS(cb);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue