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
8debac8c
Commit
8debac8c
authored
Dec 11, 2019
by
yingqiumin@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve rpc test
parent
96a42335
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dapp-test-common.sh
build/dapp-test-common.sh
+4
-3
No files found.
build/dapp-test-common.sh
View file @
8debac8c
...
@@ -24,9 +24,10 @@ echo_rst() {
...
@@ -24,9 +24,10 @@ echo_rst() {
}
}
chain33_Http
()
{
chain33_Http
()
{
# echo "#$4 request: request="$1" MAIN_HTTP="$2" js="$3" FUNCNAME="$4" response="$5""
local
body
local
body
body
=
$(
curl
-ksd
"
$1
"
"
$2
"
)
=
$(
curl
-ksd
"
$1
"
"
$2
"
)
body
=
$(
curl
-ksd
"
$1
"
"
$2
"
)
RETURN_RESP
=
$(
jq
-r
"
$5
"
<<<
"
$body
"
)
RETURN_RESP
=
$(
echo
"
$body
"
| jq
-r
"
$5
"
)
echo
"#response:
$body
"
"
$RETURN_RESP
"
echo
"#response:
$body
"
"
$RETURN_RESP
"
ok
=
$(
echo
"
$body
"
| jq
-r
"
$3
"
)
ok
=
$(
echo
"
$body
"
| jq
-r
"
$3
"
)
[
"
$ok
"
==
true
]
[
"
$ok
"
==
true
]
...
@@ -37,7 +38,7 @@ chain33_Http() {
...
@@ -37,7 +38,7 @@ chain33_Http() {
chain33_DecodeRawTransactionTx
()
{
chain33_DecodeRawTransactionTx
()
{
# txHex="$1" priKey="$2" MAIN_HTTP="$3" FUNCNAME="$4"
# txHex="$1" priKey="$2" MAIN_HTTP="$3" FUNCNAME="$4"
req
=
'{"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$1
"
'"}]}'
req
=
'{"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$1
"
'"}]}'
chain33_Http
"
$req
"
"
$3
"
'(.result.txs[0].execer !=
""
)'
"
$4
"
chain33_Http
"
$req
"
"
$3
"
'(.result.txs[0].execer !=
null
)'
"
$4
"
chain33_SignRawTx
"
$1
"
"
$2
"
"
$3
"
chain33_SignRawTx
"
$1
"
"
$2
"
"
$3
"
chain33_BlockWait 1
"
$3
"
chain33_BlockWait 1
"
$3
"
}
}
...
...
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