Commit fede315a authored by liuyuhang's avatar liuyuhang

add chain33_GetAccounts param

parent 95c0254a
......@@ -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"
}
......@@ -170,7 +170,7 @@ function run_testcases() {
#给每个账户分别转帐
origAddr="12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
chain33_GetAccounts
chain33_GetAccounts "${MAIN_HTTP}"
#主链中相应账户需要转帐
M_HTTP=${MAIN_HTTP//8901/8801}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment