Skip to content

Commit ca69232

Browse files
committed
revert(statics): undo out-of-scope kava and gno map changes
Revert 2222:'kava'->'kavaevm', 2221:'tkava'->'tkavaevm', and removal of 100:'gno'. Those changes are outside the scope of this ticket. Also remove the broad LEGACY_CHAIN_ID_MAP coverage test that was driving the extra changes. Ticket: CGD-726 Session-Id: f0e9d4de-b673-460c-bab7-293169947e32 Task-Id: 7cc8baff-7256-4246-aa9f-6694e37312b3
1 parent e1781e4 commit ca69232

2 files changed

Lines changed: 3 additions & 20 deletions

File tree

modules/statics/src/map.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ export class CoinMap {
111111
80069: 'tbera',
112112
42220: 'celo',
113113
11142220: 'tcelo',
114-
2222: 'kavaevm',
115-
2221: 'tkavaevm',
114+
2222: 'kava',
115+
2221: 'tkava',
116116
43114: 'avaxc',
117117
43113: 'tavaxc',
118+
100: 'gno',
118119
130: 'unieth',
119120
1301: 'tunieth',
120121
190415: 'hppeth',

modules/statics/test/unit/coins.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -870,24 +870,6 @@ describe('CoinMap', function () {
870870
should(() => coins.get(tavaxcName!)).not.throw();
871871
});
872872

873-
it('every LEGACY_CHAIN_ID_MAP entry resolves to a defined coin', () => {
874-
const legacyChainIds = [
875-
1, 42, 5, 560048, 10001, 80002, 137, 56, 97, 42161, 421614, 10,
876-
11155420, 1116, 1114, 248, 9372, 14, 114, 19, 16, 1111, 1112, 50, 51,
877-
80094, 80069, 42220, 11142220, 2222, 2221, 43114, 43113, 130,
878-
1301, 190415, 181228, 6985385, 7080969, 4663, 46630, 324, 8453, 84532,
879-
143, 10143, 480, 4801, 5031, 50312, 1868, 1946, 33111, 33139, 688689,
880-
102030, 102031, 998, 999, 16602, 16661, 9746, 9745, 14601, 146, 1328,
881-
1329, 1001, 8217, 1270, 59141, 59144, 1315, 1514, 545, 747, 98867,
882-
98866, 6343, 4326, 295, 296, 196, 1952, 5734951, 2019775, 5042002,
883-
4217, 42431, 5000, 5003, 25363, 20994,
884-
];
885-
for (const chainId of legacyChainIds) {
886-
const coinName = coins.coinNameFromChainId(chainId);
887-
should(coinName).not.be.undefined();
888-
should(() => coins.get(coinName!)).not.throw();
889-
}
890-
});
891873
});
892874
});
893875

0 commit comments

Comments
 (0)