When executing 'npm run dev', I receive the following output and titled error:
| async function getAccount(wallet, server) {
8 | if (!(await wallet.isConnected()) || !(await wallet.isAllowed())) {
| ^
9 | return null;
10 | }
11 | const { publicKey } = await wallet.getUserInfo();
I'm using soroban 20.0.0-rc.4.1 and I no longer use config.toml in the .cargo directory or any
reference to that directory. I read somewhere that getAccount was deprecated but didn't
find instructions on what to replace it with.
========================================================================================
Finally, I was able to get the Hello Soroban web page. The following changes were made:
invoke.js: Here, I changed wallet.isConnected() to wallet.isViewCall. I literally used what I found available without knowing
what it does or if it's the correct attribute to use. I just know it must be a boolean value.
async function getAccount(wallet, server) {
if (!(await wallet.isViewCall) || !(await wallet.isAllowed())) {
return null;
}
index.astro: ...networks.telnet produced an error in VScode and when running the app via npm, I received the error, "Invalid contract ID: undefined"
in lib;contract.js:38:13
const greeter = new Contract({
...networks.unknown,
rpcUrl: 'https://soroban-testnet.stellar.org', // from https://soroban.stellar.org/docs/reference/rpc#public-rpc-providers
});
I then tried the following, which worked: Even though the outcome was positive, I don't know
whether it was technically correct or not. If it is, then what do I need to do, and where, to insure
that correction is made in the documentation? If it's not, point me in the right direction to the solution.
Thanks.
How was I suppose to know? Also, I couldn't locate any docs regarding the attributes of a wallet.