mirror of
https://github.com/luxfi/sudoamm.git
synced 2026-10-30 19:52:38 +00:00
16 lines
303 B
Bash
Executable File
16 lines
303 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
. $(dirname $0)/common.sh
|
|
|
|
if [[ -z $contract ]]; then
|
|
if [[ -z ${1} ]];then
|
|
echo '"$contract" env variable is not set. Set it to the name of the contract you want to estimate gas cost for.'
|
|
exit 1
|
|
else
|
|
contract=${1}
|
|
fi
|
|
fi
|
|
|
|
estimate_gas $contract |