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
611c4a99
Commit
611c4a99
authored
Sep 04, 2019
by
liuyuhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify fmt and add check revboards when update
parent
447fe04d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
proposal_board.go
plugin/dapp/autonomy/commands/proposal_board.go
+1
-1
proposal_change.go
plugin/dapp/autonomy/commands/proposal_change.go
+1
-1
boardaction.go
plugin/dapp/autonomy/executor/boardaction.go
+8
-1
No files found.
plugin/dapp/autonomy/commands/proposal_board.go
View file @
611c4a99
...
...
@@ -75,7 +75,7 @@ func AutonomyCmd() *cobra.Command {
// ProposalBoardCmd 创建提案命令
func
ProposalBoardCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"proposal
b
oard"
,
Use
:
"proposal
B
oard"
,
Short
:
"create proposal board"
,
Run
:
proposalBoard
,
}
...
...
plugin/dapp/autonomy/commands/proposal_change.go
View file @
611c4a99
...
...
@@ -19,7 +19,7 @@ import (
// ProposalChangeCmd 创建提案命令
func
ProposalChangeCmd
()
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"proposal
c
hange"
,
Use
:
"proposal
C
hange"
,
Short
:
"create proposal change"
,
Run
:
proposalChange
,
}
...
...
plugin/dapp/autonomy/executor/boardaction.go
View file @
611c4a99
...
...
@@ -89,7 +89,14 @@ func (a *action) propBoard(prob *auty.ProposalBoard) (*types.Receipt, error) {
for
_
,
board
:=
range
act
.
Boards
{
if
_
,
ok
:=
mpBd
[
board
];
ok
{
err
:=
auty
.
ErrRepeatAddr
alog
.
Error
(
"propBoard "
,
"addr"
,
board
,
"propBoard update have repeat addr "
,
err
)
alog
.
Error
(
"propBoard "
,
"addr"
,
board
,
"propBoard update have repeat addr in boards"
,
err
)
return
nil
,
err
}
}
for
_
,
board
:=
range
act
.
Revboards
{
if
_
,
ok
:=
mpBd
[
board
];
ok
{
err
:=
auty
.
ErrRepeatAddr
alog
.
Error
(
"propBoard "
,
"addr"
,
board
,
"propBoard update have repeat addr in revboards "
,
err
)
return
nil
,
err
}
}
...
...
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