blumefi 2.8.0 → 2.8.1
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.
- package/cli.js +4 -3
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -163,9 +163,10 @@ const PAD_TOKEN_ABI = [
|
|
|
163
163
|
|
|
164
164
|
function getChain() {
|
|
165
165
|
const env = process.env.BLUMEFI_CHAIN || process.env.CHAIN || ''
|
|
166
|
-
if (env === '
|
|
166
|
+
if (env === 'testnet') return 'testnet'
|
|
167
|
+
if (process.argv.includes('--testnet')) return 'testnet'
|
|
167
168
|
if (process.argv.includes('--mainnet')) return 'mainnet'
|
|
168
|
-
return '
|
|
169
|
+
return 'mainnet'
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
function getNetwork() {
|
|
@@ -1712,7 +1713,7 @@ Wallet & Account:
|
|
|
1712
1713
|
status Show network info, contracts
|
|
1713
1714
|
|
|
1714
1715
|
Options:
|
|
1715
|
-
--mainnet Use mainnet (default
|
|
1716
|
+
--mainnet Use mainnet (default)
|
|
1716
1717
|
--testnet Use testnet
|
|
1717
1718
|
|
|
1718
1719
|
Environment:
|
package/package.json
CHANGED