From ec99cf6ece2b19a418faece3ab8b6f237b153057 Mon Sep 17 00:00:00 2001 From: emizzle Date: Thu, 9 Apr 2020 19:33:10 +1000 Subject: [PATCH] fix(@embark/storage): Allow upload when storage is disabled Even when the storage config sets storage to disabled, upload should still be allowed, as uploaded dapps should have the ability to NOT use storage once uploaded. --- packages/embark/src/cmd/cmd_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/embark/src/cmd/cmd_controller.js b/packages/embark/src/cmd/cmd_controller.js index 3482b8e51..31f0129b9 100644 --- a/packages/embark/src/cmd/cmd_controller.js +++ b/packages/embark/src/cmd/cmd_controller.js @@ -716,7 +716,7 @@ class EmbarkController { async.waterfall([ function initEngine(callback) { engine.init({}, () => { - if (engine.config.embarkConfig.config.storage === false || engine.config.storageConfig.enabled === false) { + if (engine.config.embarkConfig.config.storage === false) { engine.logger.error(__('Storage configuration is disabled in embark.json. Please provide a storage file before uploading')); engine.logger.info(__('You can find an example here: %s', 'https://github.com/embarklabs/embark/blob/master/templates/demo/config/storage.js'.underline)); process.exit(1);