Skip to content

Commit

Permalink
Merge pull request #1506 from Conflux-Chain/firefox-2
Browse files Browse the repository at this point in the history
fix firefox build not match
  • Loading branch information
iosh authored Jan 8, 2025
2 parents 939cf87 + 0b5e7df commit 23119f5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .yarn/versions/01a87f4a.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "helios",
"private": true,
"version": "2.7.9",
"version": "2.7.10",
"workspaces": [
"websites/*",
"packages/doc-ui/*",
Expand Down
2 changes: 0 additions & 2 deletions packages/background/src/rpc-engine-opts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion packages/inner-utils/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions packages/rpc-engine/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit 23119f5

Please sign in to comment.