File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1717 required : false
1818 type : string
1919 default : master
20+ funding_amount :
21+ description : The amount of ETH to fund each account with
22+ required : true
23+ type : number
24+ default : 5
2025 secrets :
2126 GCP_SA_KEY :
2227 required : true
4348 required : false
4449 type : string
4550 default : master
51+ funding_amount :
52+ description : The amount of ETH to fund each account with
53+ required : true
54+ type : number
55+ default : 5
4656
4757jobs :
4858 fund-sepolia-accounts :
7989 if [[ "${{ steps.get-mnemonic.outputs.new_mnemonic }}" == "true" ]]; then
8090 echo "Generating new mnemonic"
8191 else
82- MNEMONIC="${{ steps.get-mnemonic.outputs.mnemonic }}"
92+ export MNEMONIC="${{ steps.get-mnemonic.outputs.mnemonic }}"
8393 echo "Using mnemonic from GCP"
8494 fi
8595
8999 export ETHEREUM_HOST="https://json-rpc.${{ secrets.GCP_SEPOLIA_URL }}?key=${{ secrets.GCP_SEPOLIA_API_KEY }}"
90100
91101 echo "Funding accounts..."
92- $REPO/spartan/scripts/prepare_sepolia_accounts.sh ${{ inputs.values_file }} 30 "$MNEMONIC_FILE"
102+ $REPO/spartan/scripts/prepare_sepolia_accounts.sh ${{ inputs.values_file }} ${{ inputs.funding_amount }} "$MNEMONIC_FILE"
93103 mnemonic=$(cat "$MNEMONIC_FILE")
94104 rm "$MNEMONIC_FILE"
95105 echo "::add-mask::$mnemonic"
You can’t perform that action at this time.
0 commit comments