Skip to content

Commit

Permalink
feat(suite): add eip1559 network feature
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Jan 17, 2025
1 parent 5bfb927 commit 1976ef5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions suite-common/wallet-config/src/networksConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const networks = {
'coin-definitions',
'nft-definitions',
'staking',
'eip1559',
],
backendTypes: ['blockbook'],
accountTypes: {
Expand Down
3 changes: 2 additions & 1 deletion suite-common/wallet-config/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export type NetworkFeature =
| 'tokens'
| 'staking'
| 'coin-definitions'
| 'nft-definitions';
| 'nft-definitions'
| 'eip1559';

type Level = `/${number}'`;
type MaybeApostrophe = `'` | '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ describe('account utils', () => {
'coin-definitions',
'nft-definitions',
'staking',
'eip1559',
]);
expect(getNetworkAccountFeatures(coinjoinAcc)).toEqual(['rbf', 'amount-unit']);
// when account does not have features defined, take them from root network object
Expand Down

0 comments on commit 1976ef5

Please sign in to comment.