got to the root of this: I had no EVM address paired with my Polkadot generated SR25519 address.
Now one thing: how do I get the EVM address when connected with polkadot{.js}?
Normally I would do the following:
// Retrieving the selectedAccount
let accounts = await this.provider.listAccounts();
console.log("Accounts", accounts);
this.selectedAccount$.next(accounts[0]);
But I see this is returning an error as there's no listAccounts method in your provider...
How to go on with this?
Please Reef team explain this problem
Also, reefswap-ui is currently the best example on how to connect and use the provider 💪
Обсуждают сегодня