Skip to content

Commit

Permalink
yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
shekohex committed Jan 2, 2024
1 parent 11b2b0d commit bf318de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/docs/tangle-network/learn/addresses.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Bob wants to send 100 TNT to Alice, but he does not have the 100 TNT on his EVM
evmToSubstrate("0xa5fAA47a324754354CB0A305941C8cCc6b5de296");
// => 5C9ysBsWKpw3D8MFaEauFgdtMPqboS64YNYHyu1rCynLyKMZ
```

3. Bob sends the 100 TNT to `5C9ysBsWKpw3D8MFaEauFgdtMPqboS64YNYHyu1rCynLyKMZ`.
4. Alice receives the 100 TNT in her Metamask wallet.

Expand All @@ -69,13 +70,14 @@ Alice wants to send 50 TNT to Charlie. However, Charlie only has a Substrate acc

1. Charlie's address is `5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y`.
2. Alice converts Charlie's address to an EVM address using the `substrateToEvm` function.

```tsx
substrateToEvm("5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y");
// => 0x90b5ab205c6974c9ea841be688864633dc9ca8a3
```

3. Alice uses her Metamask and sends 50 TNT to `0x90b5ab205c6974c9ea841be688864633dc9ca8a3`.
4. Charlie's balance on Substrate remains the same!
> The main reason here is that Charlie needs to withdraw the balance from his EVM account.
> The main reason here is that Charlie needs to withdraw the balance from his EVM account.
5. Charlie goes to Polkadot.js (maybe we can make it in our dApp?) and calls `evm.withdraw("0x90b5ab205c6974c9ea841be688864633dc9ca8a3", 50 TNT)`.
6. Charlie sees that he has now received 50 TNT in his account.

0 comments on commit bf318de

Please sign in to comment.