diff --git a/.yarn/versions/01a87f4a.yml b/.yarn/versions/01a87f4a.yml index a325c9c7..f1fd116a 100644 --- a/.yarn/versions/01a87f4a.yml +++ b/.yarn/versions/01a87f4a.yml @@ -164,4 +164,5 @@ declined: - "@fluent-wallet/wallet_validate-private-key" - "@fluent-wallet/wallet_watch-asset" - "@fluent-wallet/wallet_zero-account-group" + - "@fluent-wallet/inner-utils" - workspace-tools diff --git a/package.json b/package.json index 9842edb2..17678701 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "helios", "private": true, - "version": "2.7.9", + "version": "2.7.10", "workspaces": [ "websites/*", "packages/doc-ui/*", diff --git a/packages/background/src/rpc-engine-opts.js b/packages/background/src/rpc-engine-opts.js index 1a11ffda..67d6a7b2 100644 --- a/packages/background/src/rpc-engine-opts.js +++ b/packages/background/src/rpc-engine-opts.js @@ -106,7 +106,6 @@ import * as ethMaxPriorityFeePerGas from '@fluent-wallet/eth_max-priority-fee-pe import * as ethEstimate1559Fee from '@fluent-wallet/eth_estimate-1559-fee' import { - IS_CI, IS_DEV_MODE, IS_PROD_MODE, IS_TEST_MODE, @@ -182,7 +181,6 @@ export const rpcEngineOpts = { isProd: IS_PROD_MODE, isDev: IS_DEV_MODE, isTest: IS_TEST_MODE, - isCI: IS_CI, methods: [ walletMetadataForPopup, walletDbQuery, diff --git a/packages/inner-utils/env.js b/packages/inner-utils/env.js index fc664cb2..0b5cd44f 100644 --- a/packages/inner-utils/env.js +++ b/packages/inner-utils/env.js @@ -4,6 +4,5 @@ export const MODE = import.meta.env export const IS_TEST_MODE = MODE === 'test' export const IS_DEV_MODE = MODE === 'development' export const IS_PROD_MODE = MODE === 'production' -export const IS_CI = process.env.CI === 'true' export const PACKAGE_VERSION = process.env.PACKAGE_VERSION diff --git a/packages/rpc-engine/index.js b/packages/rpc-engine/index.js index c5845818..b8de21f4 100644 --- a/packages/rpc-engine/index.js +++ b/packages/rpc-engine/index.js @@ -29,7 +29,7 @@ const request = (s, req = {}) => { } const defRpcEngineFactory = (db, options = {methods: []}) => { - const {methods, isProd = true, isDev, isTest, isCI} = options + const {methods, isProd = true, isDev, isTest} = options const rpcStore = new Object() // to store rpc defination methods.forEach(rpc => { @@ -92,7 +92,7 @@ const defRpcEngineFactory = (db, options = {methods: []}) => { const processSpec = ({ins, fn, outs}) => ({ ins: { ...ins, - MODE: {const: {isProd, isDev, isTest, isCI}}, + MODE: {const: {isProd, isDev, isTest}}, db: {const: db}, rpcStore: {const: rpcStore}, sendNewRpcRequest: {const: () => sendNewRpcRequest},