@cityofzion/bs-neo-legacy 1.10.5 → 1.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -189,11 +189,8 @@ class BSNeoLegacy {
|
|
|
189
189
|
if (!BSNeoLegacyHelper_1.BSNeoLegacyHelper.isMainnet(this.network)) {
|
|
190
190
|
throw new Error('Must use Mainnet network');
|
|
191
191
|
}
|
|
192
|
-
if (!neoLegacyMigrationAmounts.hasEnoughGasBalance
|
|
193
|
-
throw new Error('Must have at least 0.1 GAS');
|
|
194
|
-
}
|
|
195
|
-
if (!neoLegacyMigrationAmounts.hasEnoughNeoBalance || !neoLegacyMigrationAmounts.neoBalance) {
|
|
196
|
-
throw new Error('Must have at least 2 NEO');
|
|
192
|
+
if (!neoLegacyMigrationAmounts.hasEnoughGasBalance && !neoLegacyMigrationAmounts.hasEnoughNeoBalance) {
|
|
193
|
+
throw new Error('Must have at least 0.1 GAS or 2 NEO');
|
|
197
194
|
}
|
|
198
195
|
const { neonJsAccount, signingCallback } = yield __classPrivateFieldGet(this, _BSNeoLegacy_instances, "m", _BSNeoLegacy_generateSigningCallback).call(this, account);
|
|
199
196
|
const provider = new neon_js_1.api.neoCli.instance(this.network.url);
|