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
c13958ba
Commit
c13958ba
authored
Jun 04, 2019
by
liuyuhang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test_bw_rpc' into test_bw_rpc
# Conflicts: # build/dapp-test-common.sh
parents
a6ae394b
6144a37c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dapp-test-common.sh
build/dapp-test-common.sh
+3
-3
No files found.
build/dapp-test-common.sh
View file @
c13958ba
...
...
@@ -106,7 +106,7 @@ chain33_ImportPrivkey() {
local
req
=
'"method":"Chain33.ImportPrivkey", "params":[{"privkey":"'
"
$pri
"
'", "label":"'
"
$label
"
'"}]'
resp
=
$(
curl
-ksd
"{
$req
}"
"
$MAIN_HTTP
"
)
ok
=
$(
jq
'(
((.error|not) and (.result.label=="'
"
$label
"
'") and (.result.acc.addr == "'
"
$acc
"
'")) or (.error=="ErrPrivkeyExist")
)'
<<<
"
$resp
"
)
ok
=
$(
jq
'(
.error|not) and (.result.label=="'
"
$label
"
'") and (.result.acc.addr == "'
"
$acc
"
'"
)'
<<<
"
$resp
"
)
[
"
$ok
"
==
true
]
}
...
...
@@ -154,4 +154,5 @@ chain33_QueryExecBalance() {
chain33_GetAccounts
()
{
resp
=
$(
curl
-ksd
'{"jsonrpc":"2.0","id":2,"method":"Chain33.GetAccounts","params":[{}]}'
-H
'content-type:text/plain;'
${
MAIN_HTTP
})
echo
"
$resp
"
}
\ No newline at end of file
}
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