File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/transaction-pay-controller/src/utils Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88 getTokenInfo ,
99 getTokenFiatRate ,
1010 getAllTokenBalances ,
11+ getNativeToken ,
1112} from './token' ;
12- import { getNativeTokenAddress } from '../../../assets-controllers/src' ;
1313import { NATIVE_TOKEN_ADDRESS } from '../constants' ;
1414import { getMessengerMock } from '../tests/messenger-mock' ;
1515
@@ -346,15 +346,15 @@ describe('Token Utils', () => {
346346 } ) ;
347347 } ) ;
348348
349- describe ( 'getNativeTokenAddress ' , ( ) => {
349+ describe ( 'getNativeToken ' , ( ) => {
350350 it ( 'returns alternate address for polygon' , ( ) => {
351- expect ( getNativeTokenAddress ( '0x89' ) ) . toBe (
351+ expect ( getNativeToken ( '0x89' ) ) . toBe (
352352 '0x0000000000000000000000000000000000001010' ,
353353 ) ;
354354 } ) ;
355355
356356 it ( 'returns zero address for other chains' , ( ) => {
357- expect ( getNativeTokenAddress ( '0x1' ) ) . toBe ( NATIVE_TOKEN_ADDRESS ) ;
357+ expect ( getNativeToken ( '0x1' ) ) . toBe ( NATIVE_TOKEN_ADDRESS ) ;
358358 } ) ;
359359 } ) ;
360360
You can’t perform that action at this time.
0 commit comments