fix generate.sh script to read public Ethereum address from eth.address file properly (#19)

This commit is contained in:
jessiebroke 2024-06-25 16:02:33 -04:00 committed by GitHub
parent 54eefef71d
commit bc62a81553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}"