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
618c3308
Commit
618c3308
authored
Feb 24, 2020
by
pengjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#627 fix rpc test
parent
1a29a089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
test-rpc.sh
plugin/dapp/issuance/cmd/test/test-rpc.sh
+13
-0
No files found.
plugin/dapp/issuance/cmd/test/test-rpc.sh
View file @
618c3308
...
...
@@ -375,6 +375,19 @@ manage() {
echo
"========== # issuance add issuance-manage end =========="
chain33_BlockWait 1
${
MAIN_HTTP
}
echo
"========== # issuance add issuance-fund begin =========="
tx
=
$(
curl
-ksd
'{"method":"Chain33.CreateTransaction","params":[{"execer":"manage","actionName":"Modify","payload":{"key": "issuance-fund", "value":"'
"
${
IssuanceAddr1
}
"
'", "op":"add"}}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
data
=
$(
curl
-ksd
'{"method":"Chain33.DecodeRawTransaction","params":[{"txHex":"'
"
$tx
"
'"}]}'
${
MAIN_HTTP
}
| jq
-r
".result.txs[0]"
)
ok
=
$(
jq
'(.execer != "")'
<<<
"
$data
"
)
[
"
$ok
"
==
true
]
echo_rst
"
$FUNCNAME
"
"
$?
"
chain33_SignAndSendTx
"
$tx
"
${
SystemManager
}
${
MAIN_HTTP
}
echo
"========== # issuance add issuance-fund end =========="
chain33_BlockWait 1
${
MAIN_HTTP
}
echo
"========== # issuance add issuance-price-feed begin =========="
tx
=
$(
curl
-ksd
'{"method":"Chain33.CreateTransaction","params":[{"execer":"manage","actionName":"Modify","payload":{"key": "issuance-price-feed", "value":"'
"
${
IssuanceAddr2
}
"
'", "op":"add"}}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
...
...
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