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
37e9aea1
Commit
37e9aea1
authored
Jan 27, 2019
by
jiangpeng
Committed by
vipwzw
Jan 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify create cmd string array sep
parent
6298e21d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
multisig.go
plugin/dapp/multisig/commands/multisig.go
+4
-4
doc.go
plugin/dapp/multisig/doc.go
+1
-1
No files found.
plugin/dapp/multisig/commands/multisig.go
View file @
37e9aea1
...
...
@@ -104,10 +104,10 @@ func CreateMultiSigAccCreateCmd() *cobra.Command {
func
createMultiSigAccTransferFlags
(
cmd
*
cobra
.
Command
)
{
cmd
.
Flags
()
.
StringP
(
"owners_addr"
,
"a"
,
""
,
"address of owner
,separated by space
"
)
cmd
.
Flags
()
.
StringP
(
"owners_addr"
,
"a"
,
""
,
"address of owner
s,separated by '-', addr0-addr1-addr2...
"
)
cmd
.
MarkFlagRequired
(
"owners_addr"
)
cmd
.
Flags
()
.
StringP
(
"owners_weight"
,
"w"
,
""
,
"weight of owner
,separated by space,
uint64 type"
)
cmd
.
Flags
()
.
StringP
(
"owners_weight"
,
"w"
,
""
,
"weight of owner
s,separated by '-', w0-w1-w2...,
uint64 type"
)
cmd
.
MarkFlagRequired
(
"owners_weight"
)
cmd
.
Flags
()
.
Uint64P
(
"required_weight"
,
"r"
,
0
,
"required weight of account execute tx"
)
...
...
@@ -127,10 +127,10 @@ func createMultiSigAccTransfer(cmd *cobra.Command, args []string) {
rpcLaddr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"rpc_laddr"
)
address
,
_
:=
cmd
.
Flags
()
.
GetString
(
"owners_addr"
)
addressArr
:=
strings
.
Fields
(
address
)
addressArr
:=
strings
.
Split
(
address
,
"-"
)
weightstr
,
_
:=
cmd
.
Flags
()
.
GetString
(
"owners_weight"
)
weightsArr
:=
strings
.
Fields
(
weightstr
)
weightsArr
:=
strings
.
Split
(
weightstr
,
"-"
)
//校验owner和权重数量要一致
if
len
(
addressArr
)
!=
len
(
weightsArr
)
{
...
...
plugin/dapp/multisig/doc.go
View file @
37e9aea1
...
...
@@ -89,7 +89,7 @@ cli send bty transfer -a 100 -n test -t "1KHwX7ZadNeQDjBGpnweb4k2dqj2CWtAYo" -k
第一步:1DkrXbz2bK6XMpY4v9z2YUnhwWTXT6V5jd地址创建多重签名的账户,owner:1Kkgztjcni3xKw95y2VZHwPpsSHDEH5sXF 1N8LP5gBufZXCEdf3hyViDhWFqeB7WPGdv
//构建交易
cli send multisig account create -d 10 -e coins -s BTY -a "1C5xK2ytuoFqxmVGMcyz9XFKFWcDA8T3rK
1LDGrokrZjo1HtSmSnw8ef3oy5Vm1nctbj" -w "20
10" -r 15 -k 1DkrXbz2bK6XMpY4v9z2YUnhwWTXT6V5jd
cli send multisig account create -d 10 -e coins -s BTY -a "1C5xK2ytuoFqxmVGMcyz9XFKFWcDA8T3rK
-1LDGrokrZjo1HtSmSnw8ef3oy5Vm1nctbj" -w "20-
10" -r 15 -k 1DkrXbz2bK6XMpY4v9z2YUnhwWTXT6V5jd
//查看创建的账户个数
cli multisig account count
...
...
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