add chain33_GetAccounts param
@@ -152,6 +152,7 @@ chain33_QueryExecBalance() {
}
chain33_GetAccounts() {
- resp=$(curl -ksd '{"jsonrpc":"2.0","id":2,"method":"Chain33.GetAccounts","params":[{}]}' -H 'content-type:text/plain;' ${MAIN_HTTP})
+ local MAIN_HTTP=$1
+ resp=$(curl -ksd '{"jsonrpc":"2.0","id":2,"method":"Chain33.GetAccounts","params":[{}]}' -H 'content-type:text/plain;' "${MAIN_HTTP}")
echo "$resp"
}
