From e25ffa53ccb619156aaa5ffc8fca2b4920d9709a Mon Sep 17 00:00:00 2001 From: iosh Date: Wed, 8 Jan 2025 10:19:52 +0800 Subject: [PATCH 1/2] chore: fix firefox build not match --- packages/background/src/rpc-engine-opts.js | 2 -- packages/inner-utils/env.js | 1 - packages/rpc-engine/index.js | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/background/src/rpc-engine-opts.js b/packages/background/src/rpc-engine-opts.js index 1a11ffda9..67d6a7b22 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 fc664cb2d..0b5cd44fb 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 c5845818b..b8de21f4b 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}, From 0b5e7dfc4565ab229b7443978bd574f9dfb05f49 Mon Sep 17 00:00:00 2001 From: iosh Date: Wed, 8 Jan 2025 10:51:10 +0800 Subject: [PATCH 2/2] chore: bump version --- .yarn/versions/01a87f4a.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.yarn/versions/01a87f4a.yml b/.yarn/versions/01a87f4a.yml index a325c9c72..f1fd116a9 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 9842edb2a..176787018 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/*",