From 2479301b2bdd0e7cbc59ea885a7ff15e4b0e92d0 Mon Sep 17 00:00:00 2001 From: Vini Barbosa <83308157+vinibarbosabr@users.noreply.github.com> Date: Sat, 15 Feb 2025 11:55:31 -0300 Subject: [PATCH] Add comment related to `Wallet::from_pem_file("/ping-pong/wallet/wallet-owner.pem"` When following the tutorial, I wasn't able to deploy the sc because the program was panicking when not finding the "/wallet-owner.pem". The fix was adding the absolute path, completing with the missing directories above "/ping-pong/wallet/wallet-owner.pem". I added a comment at line 178, suggesting this fix for devs following the tutorial. --- docs/developers/tutorials/your-first-dapp.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/developers/tutorials/your-first-dapp.md b/docs/developers/tutorials/your-first-dapp.md index c22696725..dd13c6840 100644 --- a/docs/developers/tutorials/your-first-dapp.md +++ b/docs/developers/tutorials/your-first-dapp.md @@ -175,6 +175,8 @@ let alice_wallet_address = interactor .register_wallet(Wallet::from_pem_file("/ping-pong/wallet/wallet-owner.pem").unwrap()) .await; ``` +Make sure to add the absolute path at `Wallet::from_pem_file("/ping-pong/wallet/wallet-owner.pem")`, completing the missing directories above "ping-pong". + This next command deploys the Ping-Pong contract with the following settings: - Ping Amount: **1 EGLD**. - Lock Duration: **180 seconds** (3 minutes).