Update InjectedConnector class to work with starknet.js V6:
fix: chainId method
fix: connect method
fix: account method
/!\ temporary solution due to StarknetWindowObject not being correctly typed. Most of the properties are missing yet those properties does exist in the window object meaning they are here but typescript prevent us from accessing it.
In order to have this properly made we need to wait for starknet-types to be updated with a stable version.
/!\ On top of that StarknetWindowObject does have the property account filled only when we do the whole process of connection with a wallet, otherwise it's not persisted, most possibly due to the library itself being unstable.
Update
InjectedConnector
class to work with starknet.js V6:chainId
methodconnect
methodaccount
method/!\ temporary solution due to
StarknetWindowObject
not being correctly typed. Most of the properties are missing yet those properties does exist in the window object meaning they are here but typescript prevent us from accessing it.In order to have this properly made we need to wait for
starknet-types
to be updated with a stable version./!\ On top of that
StarknetWindowObject
does have the property account filled only when we do the whole process of connection with a wallet, otherwise it's not persisted, most possibly due to the library itself being unstable.