Skip to content

Commit 7055d4c

Browse files
authored
fix: keep the same symbol name (#964)
1 parent 8ae22e1 commit 7055d4c

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

packages/advanced-logic/test/extensions/payment-network/native-token.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('extensions/payment-network/native-token', () => {
2828
};
2929
const nearTestnetCurrency = {
3030
type: RequestLogicTypes.CURRENCY.ETH,
31-
value: 'tNEAR',
31+
value: 'NEAR-testnet',
3232
network: 'near-testnet',
3333
};
3434
const nativeTokenTestCases = [
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"0x775eb53d00dd0acd3ec1696472105d579b9b386b": {
3-
"0x45b3b427996b7091243501ee0efdc4a8e9b03c53": 1
3+
"0xed9cbb2837912278b47d422f36df40a1da36c4e0": 1
44
},
5-
"0x45b3b427996b7091243501ee0efdc4a8e9b03c53": {
5+
"0xed9cbb2837912278b47d422f36df40a1da36c4e0": {
66
"0x775eb53d00dd0acd3ec1696472105d579b9b386b": 1
77
}
88
}

packages/currency/src/currencyManager.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ export class CurrencyManager<TMeta = unknown> implements ICurrencyManager<TMeta>
237237
switch (currency.symbol) {
238238
case 'NEAR':
239239
case 'NEAR-testnet':
240-
case 'tNEAR':
241240
return isValidNearAddress(address, currency.network);
242241
default:
243242
// we don't pass a third argument to the validate method here

packages/currency/src/native.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const nativeCurrencies: Record<NativeCurrencyType, (NativeCurrency & { na
7676
network: 'aurora-testnet',
7777
},
7878
{
79-
symbol: 'tNEAR',
79+
symbol: 'NEAR-testnet',
8080
decimals: 24,
8181
name: 'Test Near',
8282
network: 'near-testnet',

packages/currency/test/currencyManager.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ describe('CurrencyManager', () => {
491491
},
492492
},
493493
near: {
494-
tNEAR: {
494+
'NEAR-testnet': {
495495
type: RequestLogicTypes.CURRENCY.ETH,
496-
symbol: 'tNEAR',
496+
symbol: 'NEAR-testnet',
497497
network: 'near-testnet',
498498
},
499499
},
@@ -528,7 +528,6 @@ describe('CurrencyManager', () => {
528528
switch (currency.symbol) {
529529
case 'NEAR':
530530
case 'NEAR-testnet':
531-
case 'tNEAR':
532531
testValidateAddressForCurrency(nearAddresses[currency.network], currency);
533532
break;
534533
default:

0 commit comments

Comments
 (0)