Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Oct 4, 2024
1 parent d8c6a2a commit aa37362
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions blog/2024-11-07.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,33 +65,16 @@ Check [this transaction](https://testnet.nearblocks.io/txns/GrVGFVFmGBcNP5xkoA21

In order to support Ethereum wallets, you only need to update your version of `wallet-selector`, and configure it to include the new `ethereum-wallets` module.

Do not worry! it is very simple, check our example [hello world frontend](https://github.com/near-examples/hello-near-examples/tree/main/frontend), paying special attention to the file [`./src/wallets/near.js`](https://github.com/near-examples/hello-near-examples/blob/main/frontend/src/wallets/near.js).
Do not worry! it is very simple, check our [**tutorial**](/tools/ethereum-wallets) and working example [**hello world frontend**](https://github.com/near-examples/hello-near-examples/tree/main/frontend).

There are only 3 relevant lines, where we import the `ethereum-wallets`, its config, and setup the wallet selector with it:

```js
import { setupEthereumWallets } from '@near-wallet-selector/ethereum-wallets';
import { setupWalletSelector } from '@near-wallet-selector/core';
import { wagmiConfig, web3Modal } from '@/wallets/web3modal';

selector = setupWalletSelector({
network: this.networkId,
modules: [ setupEthereumWallets({ wagmiConfig }), ... ],
});
```

The files are already prepared for you, so you can just copy them into your project and be ready to go!

:::tip

For a more detailed explanation, read the awesome documentation the [aurora team created](/tools/ethereum-wallets)

:::
---

## Resources

1. [Hello World Example](https://github.com/near-examples/hello-near-examples/blob/main/frontend/)
1. [**Integration Tutorial**](/tools/ethereum-wallets)

2. [Hello World Example](https://github.com/near-examples/hello-near-examples/blob/main/frontend/)

2. [Recording of the Near Devs call](https://drive.google.com/file/d/1xGWN1yRLzFmRn1e29kbSiO2W1JsxuJH-/view?usp=sharing) with the EthWallets presentation.
3. [Recording of the Ethereum Wallet Presentation](https://drive.google.com/file/d/1xGWN1yRLzFmRn1e29kbSiO2W1JsxuJH-/view?usp=sharing)

3. Details about how does it work are in [NEP-518](https://github.com/near/NEPs/issues/518)
4. [NEP-518](https://github.com/near/NEPs/issues/518), the proposal that started it all

0 comments on commit aa37362

Please sign in to comment.