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
6f1211e0
Commit
6f1211e0
authored
Mar 12, 2019
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check err
parent
dba9374a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
logs.go
plugin/dapp/token/executor/logs.go
+4
-1
tokendb.go
plugin/dapp/token/executor/tokendb.go
+4
-1
transwithdraw.go
plugin/dapp/token/executor/transwithdraw.go
+4
-1
No files found.
plugin/dapp/token/executor/logs.go
View file @
6f1211e0
...
...
@@ -63,7 +63,10 @@ func (r *LogsRow) Get(key string) ([]byte, error) {
// NewLogsTable create table
func
NewLogsTable
(
kvdb
dbm
.
KV
)
*
table
.
Table
{
rowMeta
:=
NewOrderRow
()
rowMeta
.
SetPayload
(
&
pty
.
LocalLogs
{})
err
:=
rowMeta
.
SetPayload
(
&
pty
.
LocalLogs
{})
if
err
!=
nil
{
panic
(
err
)
}
t
,
err
:=
table
.
NewTable
(
rowMeta
,
kvdb
,
opt_logs_table
)
if
err
!=
nil
{
panic
(
err
)
...
...
plugin/dapp/token/executor/tokendb.go
View file @
6f1211e0
...
...
@@ -40,7 +40,10 @@ func newTokenDB(preCreate *pty.TokenPreCreate, creator string, height int64) *to
func
(
t
*
tokenDB
)
save
(
db
dbm
.
KV
,
key
[]
byte
)
{
set
:=
t
.
getKVSet
(
key
)
for
i
:=
0
;
i
<
len
(
set
);
i
++
{
db
.
Set
(
set
[
i
]
.
GetKey
(),
set
[
i
]
.
Value
)
err
:=
db
.
Set
(
set
[
i
]
.
GetKey
(),
set
[
i
]
.
Value
)
if
err
!=
nil
{
panic
(
err
)
}
}
}
...
...
plugin/dapp/token/executor/transwithdraw.go
View file @
6f1211e0
...
...
@@ -172,7 +172,10 @@ func updateAddrReciver(cachedb dbm.KVDB, token string, addr string, amount int64
}
else
{
recv
-=
amount
}
setAddrReciver
(
cachedb
,
token
,
addr
,
recv
)
err
=
setAddrReciver
(
cachedb
,
token
,
addr
,
recv
)
if
err
!=
nil
{
return
nil
,
err
}
//keyvalue
return
getAddrReciverKV
(
token
,
addr
,
recv
),
nil
}
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