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
a783b9a8
Commit
a783b9a8
authored
Jul 04, 2019
by
lyn
Committed by
vipwzw
Jul 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test-rpc.sh
由于区块高度更新速度太快,交易还没有打包。此处多等一个区块。
parent
b35f406b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
test-rpc.sh
plugin/dapp/token/cmd/build/test-rpc.sh
+11
-11
No files found.
plugin/dapp/token/cmd/build/test-rpc.sh
View file @
a783b9a8
...
...
@@ -119,16 +119,16 @@ function init() {
execName
=
"user.p.para.token"
token_addr
=
$(
curl
-ksd
'{"method":"Chain33.ConvertExectoAddr","params":[{"execname":"user.p.para.token"}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
Chain33_SendToAddress
"
$recvAddr
"
"
$tokenAddr
"
100000000000
block_wait
1
block_wait
2
Chain33_SendToAddress
"
$tokenAddr
"
"
$token_addr
"
1000000000
block_wait
1
block_wait
2
else
token_addr
=
$(
curl
-ksd
'{"method":"Chain33.ConvertExectoAddr","params":[{"execname":"token"}]}'
${
MAIN_HTTP
}
| jq
-r
".result"
)
from
=
"12qyocayNF7Lv6C9qW4avxs2E7U41fKSfv"
Chain33_SendToAddress
"
$from
"
"
$tokenAddr
"
10000000000
block_wait
1
block_wait
2
Chain33_SendToAddress
"
$tokenAddr
"
"
$token_addr
"
1000000000
block_wait
1
block_wait
2
fi
echo
"token=
$token_addr
"
updateConfig
...
...
@@ -147,7 +147,7 @@ function updateConfig() {
sendSignedTx
echo_rst
"update config sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"update config queryExecRes"
"
$?
"
...
...
@@ -165,7 +165,7 @@ function token_preCreate() {
sendSignedTx
echo_rst
"token preCreate sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"token preCreate queryExecRes"
"
$?
"
...
...
@@ -192,7 +192,7 @@ function token_finish() {
sendSignedTx
echo_rst
"token finish sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"token finish queryExecRes"
"
$?
"
...
...
@@ -258,7 +258,7 @@ function token_burn() {
sendSignedTx
echo_rst
"token burn sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"token burn queryExecRes"
"
$?
"
...
...
@@ -277,7 +277,7 @@ function token_mint() {
sendSignedTx
echo_rst
"token mint sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"token mint queryExecRes"
"
$?
"
...
...
@@ -295,7 +295,7 @@ function token_transfer() {
sendSignedTx
echo_rst
"token transfer sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"token transfer queryExecRes"
"
$?
"
...
...
@@ -333,7 +333,7 @@ function token_withdraw() {
sendSignedTx
echo_rst
"token withdraw sendSignedTx"
"
$?
"
block_wait
1
block_wait
2
queryTransaction
".error | not"
"true"
echo_rst
"token withdraw queryExecRes"
"
$?
"
...
...
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