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
4efd443d
Commit
4efd443d
authored
Dec 10, 2019
by
yingqiumin@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve rpc test
parent
63d657dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
dapp-test-common.sh
build/dapp-test-common.sh
+1
-1
test-rpc.sh
plugin/dapp/multisig/cmd/test/test-rpc.sh
+0
-4
No files found.
build/dapp-test-common.sh
View file @
4efd443d
...
...
@@ -36,7 +36,7 @@ chain33_Http() {
chain33_DecodeRawTransactionTx
()
{
# txHex="$1" priKey="$2" MAIN_HTTP="$3" FUNCNAME="$4"
req
=
'{"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$1
"
'"}]}'
http_req
"
$req
"
"
$3
"
'(.result.txs[0].execer != "")'
"
$4
"
chain33_Http
"
$req
"
"
$3
"
'(.result.txs[0].execer != "")'
"
$4
"
chain33_SignRawTx
"
$1
"
"
$2
"
"
$3
"
chain33_BlockWait 1
"
$3
"
}
...
...
plugin/dapp/multisig/cmd/test/test-rpc.sh
View file @
4efd443d
...
...
@@ -195,10 +195,6 @@ function multisig_AccOperateTx() {
req
=
'{"method":"Chain33.Query","params":[{"execer":"multisig","funcName":"MultiSigAccTxCount","payload":{"multiSigAccAddr":"'
"
$multisigAccAddr
"
'"}}]}'
chain33_Http
"
$req
"
${
MAIN_HTTP
}
'(.result.data != null)'
"
$FUNCNAME
"
#获取本多重签名账户上的交易数,通过交易交易id获取交易信息 ????
req
=
'{"method":"Chain33.Query","params":[{"execer":"multisig","funcName":"MultiSigAccTxCount","payload":{"multiSigAccAddr":"'
"
$multisigAccAddr
"
'"}}]}'
chain33_Http
"
$req
"
${
MAIN_HTTP
}
'(.result.data != null)'
"
$FUNCNAME
"
#查询多重签名账户信息中
req
=
'{"method":"Chain33.Query","params":[{"execer":"multisig","funcName":"MultiSigTxInfo","payload":{"multiSigAddr":"'
"
$multisigAccAddr
"
'","txId":"7"}}]}'
resok
=
'(.result.txid == "7") and (.result.executed == true) and (.result.multiSigAddr == "'
"
$multisigAccAddr
"
'")'
...
...
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