Open MattPoblete opened 1 month ago
@abstract829
Should change in the connect type
export type Connector = {
id: string
name: string
shortName?: string
iconUrl: string | (() => Promise<string>)
iconBackground: string
installed?: boolean
downloadUrls?: {
android?: string
ios?: string
browserExtension?: string
qrCode?: string
}
isConnected: () => boolean // should return Promise<boolean>
getNetworkDetails: () => Promise<NetworkDetails>
getPublicKey: () => Promise<string>
signTransaction: (
xdr: string,
opts?: {
network?: string
networkPassphrase?: string
accountToSign?: string
}
) => Promise<string>
}
but the correct way to avoid this type errors happen again in the future should be to move the SorobanContextType from @soroban-react/contracts to @soroban-react/types so we could use the package here instead of clone the types
The props:
of SorobanContextType in utils/contractInvoke/types.ts:60 are incompatibles with the SorobanContextType provided by
@soroban-react/core