From bf318de31f771cdd1473b0fb6b0f9add0fa4db68 Mon Sep 17 00:00:00 2001 From: Shady Khalifa Date: Tue, 2 Jan 2024 17:03:54 +0200 Subject: [PATCH] yarn format --- pages/docs/tangle-network/learn/addresses.mdx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/docs/tangle-network/learn/addresses.mdx b/pages/docs/tangle-network/learn/addresses.mdx index e79c8ff1..10f98a2d 100644 --- a/pages/docs/tangle-network/learn/addresses.mdx +++ b/pages/docs/tangle-network/learn/addresses.mdx @@ -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. @@ -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. -