Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
da1ce603
Commit
da1ce603
authored
Jul 03, 2019
by
vipwzw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
47b6546e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
test-rpc.sh
plugin/dapp/paracross/cmd/test/test-rpc.sh
+2
-8
No files found.
plugin/dapp/paracross/cmd/test/test-rpc.sh
View file @
da1ce603
...
...
@@ -62,7 +62,6 @@ function paracross_QueryParaBalance() {
return
$?
}
function
paracross_QueryMainBalance
()
{
local
req
local
resp
...
...
@@ -80,7 +79,6 @@ function paracross_QueryMainBalance() {
return
$?
}
function
paracross_Transfer_Withdraw_Inner
()
{
# 计数器,资产转移操作和取钱操作都成功才算成功,也就是 counter == 2
...
...
@@ -131,7 +129,6 @@ function paracross_Transfer_Withdraw_Inner() {
chain33_SignRawTx
"
$tx_hash
"
"
$privkey
"
${
UNIT_HTTP
}
#paracross_SignAndSend $fee "$privkey" "$tx_hash"
#1. 查询资产转移前余额状态
para_balance_before
=
$(
paracross_QueryParaBalance
"
$from_addr
"
)
echo
"para before transferring:
$para_balance_before
"
...
...
@@ -323,7 +320,6 @@ function run_testcases() {
paracross_Transfer_Withdraw
}
function
transfer_guard
()
{
UNIT_HTTP
=
$1
IS_PARA
=
$(
echo
'"'
"
${
UNIT_HTTP
}
"
'"'
| jq
'.|contains("8901")'
)
...
...
@@ -338,7 +334,6 @@ function transfer_guard() {
local
paracross_addr
=
"1HPkPopVe3ERfvaAgedDtJQ792taZFEHCe"
}
function
main
()
{
UNIT_HTTP
=
$1
...
...
@@ -360,8 +355,8 @@ function main() {
chain33_BlockWait 1
${
UNIT_HTTP
}
done
else
echo
"=========== # paracross rpc test ============="
run_testcases
echo
"=========== # paracross rpc test ============="
run_testcases
fi
if
[
-n
"
$CASE_ERR
"
]
;
then
...
...
@@ -373,4 +368,3 @@ function main() {
main
$1
$2
$3
$4
#main http://127.0.0.1:8801
#main http://47.98.253.127:8801 1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4 0x6da92a632ab7deb67d38c0f6560bcfed28167998f6496db64c258d5e8393a81b user.p.fzmtest.paracross
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment