@@ -2,7 +2,8 @@ import React from "react";
22import  styled  from  "@emotion/styled" ; 
33import  copy  from  "copy-to-clipboard" ; 
44
5- import  {  BN  }  from  "@compolabs/spark-orderbook-ts-sdk" ; 
5+ import  {  Blockchain  }  from  "@blockchain" ; 
6+ import  {  BN  }  from  "@blockchain/fuel/types" ; 
67
78import  copyIcon  from  "@assets/icons/copy.svg" ; 
89import  linkIcon  from  "@assets/icons/link.svg" ; 
@@ -13,8 +14,6 @@ import { useStores } from "@stores";
1314
1415import  {  getExplorerLinkByAddress  }  from  "@utils/getExplorerLink" ; 
1516
16- import  {  FuelNetwork  }  from  "@blockchain" ; 
17- 
1817import  Divider  from  "../Divider" ; 
1918import  Sheet  from  "../Sheet" ; 
2019import  {  SmartFlex  }  from  "../SmartFlex" ; 
@@ -29,11 +28,11 @@ const AccountInfoSheet: React.FC<Props> = ({ isOpen, onClose }) => {
2928  const  {  disconnect }  =  useWallet ( ) ; 
3029  const  {  accountStore,  notificationStore,  balanceStore }  =  useStores ( ) ; 
3130
32-   const  bcNetwork  =  FuelNetwork . getInstance ( ) ; 
31+   const  bcNetwork  =  Blockchain . getInstance ( ) ; 
3332
3433  const  ethBalance  =  BN . formatUnits ( 
35-     balanceStore . getWalletBalance ( bcNetwork ! . getTokenBySymbol ( "ETH" ) . assetId )  ??  BN . ZERO , 
36-     bcNetwork ? .getTokenBySymbol ( "ETH" ) . decimals , 
34+     balanceStore . getWalletBalance ( bcNetwork . sdk . getTokenBySymbol ( "ETH" ) . assetId )  ??  BN . ZERO , 
35+     bcNetwork . sdk . getTokenBySymbol ( "ETH" ) . decimals , 
3736  ) ?. toFormat ( 4 ) ; 
3837
3938  const  handleAddressCopy  =  ( )  =>  { 
@@ -80,7 +79,7 @@ const AccountInfoSheet: React.FC<Props> = ({ isOpen, onClose }) => {
8079    < Sheet  isOpen = { isOpen }  header  onClose = { onClose } > 
8180      < SmartFlex  column > 
8281        < TokenContainer  center = "y"  gap = "8px" > 
83-           < Icon  alt = "ETH"  src = { bcNetwork ? .getTokenBySymbol ( "ETH" ) . logo }  /> 
82+           < Icon  alt = "ETH"  src = { bcNetwork . sdk . getTokenBySymbol ( "ETH" ) . logo }  /> 
8483          < Text  type = "H"  primary > { `${ ethBalance }  } </ Text > 
8584        </ TokenContainer > 
8685        < Divider  /> 
0 commit comments