diff --git a/scripts/generate-validator-signature.sh b/scripts/generate-validator-signature.sh index e8d3626f..8658a286 100644 --- a/scripts/generate-validator-signature.sh +++ b/scripts/generate-validator-signature.sh @@ -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 @@ -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." \ No newline at end of file +echo "To initialize the validator, you need to call the createAndInitializeValidatorIfNecessary function with the pubkey and signature."