File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# check that OPERATOR_ADDRESS is not empty
4- if [[ " $OPERATOR_ADDRESS " -eq " " ]]; then
4+ if [[ -z " $OPERATOR_ADDRESS " ]]; then
55 echo " OPERATOR_ADDRESS is empty, using default value 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
66 OPERATOR_ADDRESS=" 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
77fi ;
@@ -17,7 +17,7 @@ mock_token_address=$(cast call "$mock_strategy_address" "underlyingToken()")
1717
1818operator_address=$( cat " $1 " | yq -r ' .operator.address' )
1919
20- if [[ " $mock_token_address " -eq " " ]]; then
20+ if [[-z " $mock_token_address " ]]; then
2121 echo " Mock token address is empty, please deploy the contracts first"
2222 exit 1
2323fi ;
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Check that OPERATOR_ADDRESS is not empty
4- if [[ " $USER_ADDRESS " -eq " " ]]; then
4+ if [[ -z " $USER_ADDRESS " ]]; then
55 echo " USER_ADDRESS is empty, using default value 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
66 USER_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
77 USER_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
You can’t perform that action at this time.
0 commit comments