File tree Expand file tree Collapse file tree 4 files changed +35
-1
lines changed
infrastructure/stores/migrator/migrations Expand file tree Collapse file tree 4 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @block-wallet/background" ,
3
- "version" : " 1.1.23 " ,
3
+ "version" : " 1.1.24 " ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@block-wallet/chains-assets" : " https://github.com/block-wallet/chains-assets#v0.0.57" ,
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ import migration70 from './migration-70';
72
72
import migration71 from './migration-71' ;
73
73
import migration72 from './migration-72' ;
74
74
import migration73 from './migration-73' ;
75
+ import migration74 from './migration-74' ;
75
76
76
77
const migrations : IMigration [ ] = [
77
78
migration01 ,
@@ -147,6 +148,7 @@ const migrations: IMigration[] = [
147
148
migration71 ,
148
149
migration72 ,
149
150
migration73 ,
151
+ migration74 ,
150
152
] ;
151
153
152
154
export default ( ) : IMigration [ ] => migrations ;
Original file line number Diff line number Diff line change
1
+ import { BlankAppState } from '../../../../utils/constants/initialState' ;
2
+ import { IMigration } from '../IMigration' ;
3
+ import { BigNumber } from '@ethersproject/bignumber' ;
4
+
5
+ /**
6
+ * This migration updates the gas lower cap for bnb
7
+ */
8
+ export default {
9
+ migrate : async ( persistedState : BlankAppState ) => {
10
+ const { availableNetworks } = persistedState . NetworkController ;
11
+ const updatedNetworks = { ...availableNetworks } ;
12
+
13
+ updatedNetworks [ 'BSC' ] = {
14
+ ...updatedNetworks [ 'BSC' ] ,
15
+ gasLowerCap : {
16
+ maxPriorityFeePerGas : BigNumber . from ( '3000000000' ) , // 3 GWEI,
17
+ } ,
18
+ } ;
19
+
20
+ return {
21
+ ...persistedState ,
22
+ NetworkController : {
23
+ ...persistedState . NetworkController ,
24
+ availableNetworks : { ...updatedNetworks } ,
25
+ } ,
26
+ } ;
27
+ } ,
28
+ version : '1.1.24' ,
29
+ } as IMigration ;
Original file line number Diff line number Diff line change @@ -303,6 +303,9 @@ export const INITIAL_NETWORKS: Networks = {
303
303
derivationsForward : DERIVATIONS_FORWARD ,
304
304
} ,
305
305
nativelySupported : true ,
306
+ gasLowerCap : {
307
+ maxPriorityFeePerGas : BigNumber . from ( '3000000000' ) , // 3 GWEI,
308
+ } ,
306
309
} ,
307
310
POLYGON : {
308
311
name : 'polygon' ,
You can’t perform that action at this time.
0 commit comments