Closed esteblock closed 3 months ago
Problem: user connects wallet to read info in blockchain but account does not exist yet, to it breaks in https://github.com/paltalabs/soroban-react/blob/e5dc1d288823f4d2a4051f5d0ef787f1b23fb0dc/packages/contracts/src/contractInvoke.tsx#L52
const source = secretKey ? await server.getAccount( SorobanClient.Keypair.fromSecret(secretKey).publicKey() ) : address ? await server?.getAccount(address) : new SorobanClient.Account(defaultAddress, '0')
Please do: If signAndSend ==false, try to create source with address if fails, create with defaultAddress
This will allow user to read blockchain even if connects a wallet not funded yet
Problem: user connects wallet to read info in blockchain but account does not exist yet, to it breaks in https://github.com/paltalabs/soroban-react/blob/e5dc1d288823f4d2a4051f5d0ef787f1b23fb0dc/packages/contracts/src/contractInvoke.tsx#L52
Please do: If signAndSend ==false, try to create source with address if fails, create with defaultAddress
This will allow user to read blockchain even if connects a wallet not funded yet