diff --git a/.yarn/versions/aa00b5c3.yml b/.yarn/versions/aa00b5c3.yml new file mode 100644 index 000000000..17d8178f9 --- /dev/null +++ b/.yarn/versions/aa00b5c3.yml @@ -0,0 +1,6 @@ +releases: + "@fluent-wallet/eth_estimate-1559-fee": patch + "@fluent-wallet/eth_fee-history": patch + +declined: + - helios-background diff --git a/packages/rpcs/eth_estimate1559Fee/index.js b/packages/rpcs/eth_estimate1559Fee/index.js index 89dd32ef1..19fcf13b3 100644 --- a/packages/rpcs/eth_estimate1559Fee/index.js +++ b/packages/rpcs/eth_estimate1559Fee/index.js @@ -21,7 +21,7 @@ export const permissions = { //Gas station url for EIP1559 export const GAS_API_BASE_URL = 'https://gas-api.metaswap.codefi.network' // How many blocks to consider for priority fee estimation -const FEE_HISTORY_BLOCKS = 5 +const FEE_HISTORY_BLOCKS = '0x5' // Levels of priority fee const PRIORITY_LEVELS = ['low', 'medium', 'high'] const SETTINGS_BY_PRIORITY_LEVEL = { diff --git a/packages/rpcs/eth_feeHistory/index.js b/packages/rpcs/eth_feeHistory/index.js index df3cf384d..e7e02a1b0 100644 --- a/packages/rpcs/eth_feeHistory/index.js +++ b/packages/rpcs/eth_feeHistory/index.js @@ -5,6 +5,7 @@ import { or, zeroOrMore, number, + string, schema, } from '@fluent-wallet/spec' @@ -12,7 +13,7 @@ export const NAME = 'eth_feeHistory' export const schemas = { input: [ cat, - number, + string, [or, blockRef, Uint], [schema, [zeroOrMore, [number, {max: 100, min: 1}]]], ], diff --git a/yarn.lock b/yarn.lock index 09333d1c0..9c109a771 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15046,7 +15046,7 @@ __metadata: version: 1.4.2 resolution: "eth-sig-util@npm:1.4.2" dependencies: - ethereumjs-abi: "git+https://github.com/ethereumjs/ethereumjs-abi.git" + ethereumjs-abi: ^0.6.8 ethereumjs-util: ^5.1.1 checksum: 578f5c571c1bb0a86dc1bd4a5b56b8073b37823496d7afa74d772cf91ae6860f91bafcbee931be39a3d13f0c195df9f026a27fce350605ad5d15901a5a4ea94a languageName: node @@ -15140,16 +15140,6 @@ __metadata: languageName: node linkType: hard -"ethereumjs-abi@git+https://github.com/ethereumjs/ethereumjs-abi.git": - version: 0.6.8 - resolution: "ethereumjs-abi@https://github.com/ethereumjs/ethereumjs-abi.git#commit=ee3994657fa7a427238e6ba92a84d0b529bbcde0" - dependencies: - bn.js: ^4.11.8 - ethereumjs-util: ^6.0.0 - checksum: ae074be0bb012857ab5d3ae644d1163b908a48dd724b7d2567cfde309dc72222d460438f2411936a70dc949dc604ce1ef7118f7273bd525815579143c907e336 - languageName: node - linkType: hard - "ethereumjs-abi@npm:0.6.5": version: 0.6.5 resolution: "ethereumjs-abi@npm:0.6.5"