From d0fa425d6ea411093179951ea4325475e88ee7ad Mon Sep 17 00:00:00 2001 From: Shai James Date: Wed, 3 Oct 2018 03:07:32 +0300 Subject: [PATCH] version and migration fix --- package.json | 2 +- src/migrations/versions/9.2.0.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 27237323..ee41322f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scatter", - "version": "9.1.2", + "version": "9.2.0", "description": "Scatter Desktop Companion", "private": true, "main": "electron.js", diff --git a/src/migrations/versions/9.2.0.js b/src/migrations/versions/9.2.0.js index bd919e05..8202df70 100644 --- a/src/migrations/versions/9.2.0.js +++ b/src/migrations/versions/9.2.0.js @@ -13,5 +13,8 @@ export const m9_2_0 = async scatter => { return network; })); + if(!scatter.settings.networks.find(x => x.blockchain === Blockchains.TRX)) + scatter.settings.networks.push(await PluginRepository.plugin(Blockchains.TRX).getEndorsedNetwork()); + return true; }; \ No newline at end of file