#send from 14KEKbYtKKQm4wMthSK9J4La4nAiidGozt for test
hash=$(${CLI} send coins transfer -a 10000 -ntest-t 12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv -k CC38546E9E659D15E6B4893F0AB32A06D103931A8230B0BDE71459D2B27D6944)
echo"${hash}"
block_wait_by_height "$curHeight", 1
block_wait_by_height "$curHeight", 1
echo"len: ${#hashes[@]}"
echo"len: ${#hashes[@]}"
...
@@ -338,9 +347,15 @@ function base_config() {
...
@@ -338,9 +347,15 @@ function base_config() {
transfer
transfer
}
}
function base_test(){
if["$DAPP"==""];then
system_test_rpc "https://${1}:8801"
fi
}
function dapp_run(){
function dapp_run(){
if[-e"$DAPP_TEST_FILE"];then
if[-e"$DAPP_TEST_FILE"];then
${DAPP}"${CLI}""${1}"
${DAPP}"${CLI}""${1}""${2}"
fi
fi
}
}
...
@@ -358,7 +373,9 @@ function main() {
...
@@ -358,7 +373,9 @@ function main() {
dapp_run config
dapp_run config
### test cases ###
### test cases ###
dapp_run test
ip=$(${CLI} net info | jq -r".externalAddr[0:10]")