Skip to content

Commit

Permalink
increase gas
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Nov 12, 2024
1 parent 5ab3a9e commit cb0e8c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/l2/l2-teardown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ drain_address() {

# Estimate gas
gas_price=$(cast gas-price --rpc-url "$L1_RPC_URL")
gas_units=21000
gas_units=30000
gas_cost=$(awk -v gp="$gas_price" -v gu="$gas_units" 'BEGIN { printf "%.0f", gp * gu }')
gas_cost_with_buffer=$(awk -v gc="$gas_cost" 'BEGIN { printf "%.0f", gc * 1.2 }')
echo "Gas cost (+20% buffer): $gas_cost_with_buffer"
Expand Down

0 comments on commit cb0e8c0

Please sign in to comment.