From bc62a81553541319918ec45ea51ed1ec91256fd7 Mon Sep 17 00:00:00 2001 From: jessiebroke <18238304+jessiebroke@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:02:33 -0400 Subject: [PATCH] fix generate.sh script to read public Ethereum address from eth.address file properly (#19) --- scripts/generate.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/generate.sh b/scripts/generate.sh index f5ff722..4ec01c0 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -8,6 +8,9 @@ echo -n "${response}" | grep -o '"private":.*"' | cut -d'"' -f4 > ./eth.key echo -n "${response}" | grep -o '"address":.*"' | cut -d'"' -f4 > ./eth.address chmod 600 ./eth.key +# Read the address from the file +address=$(cat ./eth.address) + echo " * your private key has been saved to ${PWD}/eth.key" echo " * your ethereum address has been saved to ${PWD}/eth.address" echo " * your ethereum address is 0x${address}"