File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class Shibaswap implements Uniswapish {
42
42
43
43
private constructor ( chain : string , network : string ) {
44
44
const config = ShibaswapConfig . config ;
45
- if ( chain === 'shibarium' ) {
45
+ if ( [ 'shibarium' , 'ethereum' ] . includes ( chain ) ) {
46
46
this . chain = Shibarium . getInstance ( network ) ;
47
47
} else {
48
48
throw new Error ( 'unsupported chain' ) ;
Original file line number Diff line number Diff line change @@ -247,7 +247,10 @@ export async function getConnector<T>(
247
247
connectorInstance = Tinyman . getInstance ( network ) ;
248
248
} else if ( connector === 'plenty' ) {
249
249
connectorInstance = Plenty . getInstance ( network ) ;
250
- } else if ( chain === 'shibarium' && connector === 'shibaswap' ) {
250
+ } else if (
251
+ [ 'shibarium' , 'ethereum' ] . includes ( chain ) &&
252
+ connector === 'shibaswap'
253
+ ) {
251
254
connectorInstance = Shibaswap . getInstance ( chain , network ) ;
252
255
} else if ( chain === 'shibarium' && connector === 'chewyswap' ) {
253
256
connectorInstance = Chewyswap . getInstance ( chain , network ) ;
You can’t perform that action at this time.
0 commit comments