@@ -136,6 +136,19 @@ describe('ERC20Token', () => {
136136 } )
137137 } )
138138
139+ describe ( 'when the chain id is bnb' , ( ) => {
140+ const chainId = ChainId . BNB
141+
142+ it ( 'returns the expected token' , ( ) => {
143+ const token = ERC20Token . native ( chainId )
144+
145+ expect ( token . address . toHexString ( ) ) . toBe ( EVM_NATIVE_ADDRESS )
146+ expect ( token . chainId ) . toBe ( chainId )
147+ expect ( token . symbol ) . toBe ( 'BNB' )
148+ expect ( token . decimals ) . toBe ( 18 )
149+ } )
150+ } )
151+
139152 describe ( 'when the chain id is gnosis' , ( ) => {
140153 const chainId = ChainId . GNOSIS
141154
@@ -149,6 +162,32 @@ describe('ERC20Token', () => {
149162 } )
150163 } )
151164
165+ describe ( 'when the chain id is polygon' , ( ) => {
166+ const chainId = ChainId . POLYGON
167+
168+ it ( 'returns the expected token' , ( ) => {
169+ const token = ERC20Token . native ( chainId )
170+
171+ expect ( token . address . toHexString ( ) ) . toBe ( '0x0000000000000000000000000000000000001010' )
172+ expect ( token . chainId ) . toBe ( chainId )
173+ expect ( token . symbol ) . toBe ( 'POL' )
174+ expect ( token . decimals ) . toBe ( 18 )
175+ } )
176+ } )
177+
178+ describe ( 'when the chain id is avalanche' , ( ) => {
179+ const chainId = ChainId . AVALANCHE
180+
181+ it ( 'returns the expected token' , ( ) => {
182+ const token = ERC20Token . native ( chainId )
183+
184+ expect ( token . address . toHexString ( ) ) . toBe ( EVM_NATIVE_ADDRESS )
185+ expect ( token . chainId ) . toBe ( chainId )
186+ expect ( token . symbol ) . toBe ( 'AVAX' )
187+ expect ( token . decimals ) . toBe ( 18 )
188+ } )
189+ } )
190+
152191 describe ( 'when the chain id is sonic' , ( ) => {
153192 const chainId = ChainId . SONIC
154193
0 commit comments