Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/generate-validator-signature.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ read VALIDATOR_INITIAL_DELEGATION_IN_ETHER
if [ -z $VALIDATOR_INITIAL_DELEGATION_IN_ETHER ]; then
VALIDATOR_INITIAL_DELEGATION_IN_GWEI=32000000000
elif [[ "$VALIDATOR_INITIAL_DELEGATION_IN_ETHER" =~ ^[0-9]+$ ]]; then
VALIDATOR_INITIAL_DELEGATION_IN_GWEI=$(expr $VALIDATOR_INITIAL_DELEGATION_IN_ETHER \* 1000000000)
VALIDATOR_INITIAL_DELEGATION_IN_GWEI=$(echo "$VALIDATOR_INITIAL_DELEGATION_IN_ETHER * 1000000000" | bc)
else
echo "$VALIDATOR_INITIAL_DELEGATION_IN_ETHER not a integer"
exit 1
Expand Down Expand Up @@ -73,4 +73,4 @@ echo "pubkey: $pubkey"
echo "validator_address: $validator_address"
echo "signature: $signature\n"

echo "To initialize the validator, you need to call the createAndInitializeValidatorIfNecessary function with the pubkey and signature."
echo "To initialize the validator, you need to call the createAndInitializeValidatorIfNecessary function with the pubkey and signature."