212 похожих чатов

[Reef-Defi/Reef-Chain] Unable to interact with smart contract (#44) OK guys, I

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

1 ответов

8 просмотров

Also, reefswap-ui is currently the best example on how to connect and use the provider 💪

Похожие вопросы

Обсуждают сегодня

Карта сайта