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
993afda5
Commit
993afda5
authored
Mar 26, 2020
by
harrylee
Committed by
vipwzw
Apr 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make linter
parent
5f25bf14
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
account_test.go
plugin/dapp/accountmanager/executor/account_test.go
+1
-1
accountmanager.go
plugin/dapp/accountmanager/types/accountmanager.go
+6
-6
No files found.
plugin/dapp/accountmanager/executor/account_test.go
View file @
993afda5
...
@@ -97,7 +97,7 @@ func TestAccountManager(t *testing.T) {
...
@@ -97,7 +97,7 @@ func TestAccountManager(t *testing.T) {
item2
:=
&
types
.
ConfigItem
{
item2
:=
&
types
.
ConfigItem
{
Key
:
"mavl-manage-"
+
ConfNameManagerAddr
,
Key
:
"mavl-manage-"
+
ConfNameManagerAddr
,
Value
:
&
types
.
ConfigItem_Arr
{
Value
:
&
types
.
ConfigItem_Arr
{
Arr
:
&
types
.
ArrayConfig
{
Value
:
[]
string
{
string
(
Nodes
[
0
])
}},
Arr
:
&
types
.
ArrayConfig
{
Value
:
[]
string
{
Nodes
[
0
]
}},
},
},
}
}
stateDB
.
Set
([]
byte
(
item2
.
Key
),
types
.
Encode
(
item2
))
stateDB
.
Set
([]
byte
(
item2
.
Key
),
types
.
Encode
(
item2
))
...
...
plugin/dapp/accountmanager/types/accountmanager.go
View file @
993afda5
...
@@ -117,28 +117,28 @@ func InitExecutor(cfg *types.Chain33Config) {
...
@@ -117,28 +117,28 @@ func InitExecutor(cfg *types.Chain33Config) {
types
.
RegistorExecutor
(
AccountmanagerX
,
NewType
(
cfg
))
types
.
RegistorExecutor
(
AccountmanagerX
,
NewType
(
cfg
))
}
}
type
a
ccountmanagerType
struct
{
type
A
ccountmanagerType
struct
{
types
.
ExecTypeBase
types
.
ExecTypeBase
}
}
func
NewType
(
cfg
*
types
.
Chain33Config
)
*
a
ccountmanagerType
{
func
NewType
(
cfg
*
types
.
Chain33Config
)
*
A
ccountmanagerType
{
c
:=
&
a
ccountmanagerType
{}
c
:=
&
A
ccountmanagerType
{}
c
.
SetChild
(
c
)
c
.
SetChild
(
c
)
c
.
SetConfig
(
cfg
)
c
.
SetConfig
(
cfg
)
return
c
return
c
}
}
// GetPayload 获取合约action结构
// GetPayload 获取合约action结构
func
(
a
*
a
ccountmanagerType
)
GetPayload
()
types
.
Message
{
func
(
a
*
A
ccountmanagerType
)
GetPayload
()
types
.
Message
{
return
&
AccountmanagerAction
{}
return
&
AccountmanagerAction
{}
}
}
// GeTypeMap 获取合约action的id和name信息
// GeTypeMap 获取合约action的id和name信息
func
(
a
*
a
ccountmanagerType
)
GetTypeMap
()
map
[
string
]
int32
{
func
(
a
*
A
ccountmanagerType
)
GetTypeMap
()
map
[
string
]
int32
{
return
actionMap
return
actionMap
}
}
// GetLogMap 获取合约log相关信息
// GetLogMap 获取合约log相关信息
func
(
a
*
a
ccountmanagerType
)
GetLogMap
()
map
[
int64
]
*
types
.
LogInfo
{
func
(
a
*
A
ccountmanagerType
)
GetLogMap
()
map
[
int64
]
*
types
.
LogInfo
{
return
logMap
return
logMap
}
}
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