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
b2ba7b74
Commit
b2ba7b74
authored
Nov 06, 2018
by
linj
Committed by
linj
Nov 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix exec index args int, not int32
parent
a5f33c04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
exec.go
executor/exec.go
+3
-3
exec_local.go
executor/exec_local.go
+1
-0
exec_test.go
executor/exec_test.go
+1
-0
No files found.
executor/exec.go
View file @
b2ba7b74
...
...
@@ -7,7 +7,7 @@ import (
"gitlab.33.cn/chain33/chain33/types"
)
func
(
u
*
Unfreeze
)
Exec_Create
(
payload
*
pty
.
UnfreezeCreate
,
tx
*
types
.
Transaction
,
index
int
32
)
(
*
types
.
Receipt
,
error
)
{
func
(
u
*
Unfreeze
)
Exec_Create
(
payload
*
pty
.
UnfreezeCreate
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
if
payload
.
AssetSymbol
==
""
||
payload
.
AssetSymbol
==
""
||
payload
.
TotalCount
<=
0
||
payload
.
Means
==
""
{
return
nil
,
types
.
ErrInvalidParam
}
...
...
@@ -40,7 +40,7 @@ func (u *Unfreeze) Exec_Create(payload *pty.UnfreezeCreate, tx *types.Transactio
return
MergeReceipt
(
receipt
,
receipt1
)
}
func
(
u
*
Unfreeze
)
Exec_Withdraw
(
payload
*
pty
.
UnfreezeWithdraw
,
tx
*
types
.
Transaction
,
index
int
32
)
(
*
types
.
Receipt
,
error
)
{
func
(
u
*
Unfreeze
)
Exec_Withdraw
(
payload
*
pty
.
UnfreezeWithdraw
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
value
,
err
:=
u
.
GetStateDB
()
.
Get
([]
byte
(
payload
.
UnfreezeID
))
if
err
!=
nil
{
uflog
.
Error
(
"unfreeze withdraw get"
,
"id"
,
payload
.
UnfreezeID
,
"err"
,
err
)
...
...
@@ -77,7 +77,7 @@ func (u *Unfreeze) Exec_Withdraw(payload *pty.UnfreezeWithdraw, tx *types.Transa
return
MergeReceipt
(
receipt
,
receipt1
)
}
func
(
u
*
Unfreeze
)
Exec_Terminate
(
payload
*
pty
.
UnfreezeTerminate
,
tx
*
types
.
Transaction
,
index
int
32
)
(
*
types
.
Receipt
,
error
)
{
func
(
u
*
Unfreeze
)
Exec_Terminate
(
payload
*
pty
.
UnfreezeTerminate
,
tx
*
types
.
Transaction
,
index
int
)
(
*
types
.
Receipt
,
error
)
{
value
,
err
:=
u
.
GetStateDB
()
.
Get
([]
byte
(
payload
.
UnfreezeID
))
if
err
!=
nil
{
uflog
.
Error
(
"unfreeze terminate get"
,
"id"
,
payload
.
UnfreezeID
,
"err"
,
err
)
...
...
executor/exec_local.go
View file @
b2ba7b74
...
...
@@ -44,6 +44,7 @@ func localKeys(res *uf.ReceiptUnfreeze, value []byte) (kvs []*types.KeyValue) {
kvs
=
append
(
kvs
,
&
types
.
KeyValue
{
beneficiaryKey
(
res
.
Cur
.
Beneficiary
),
value
})
return
}
func
(
u
*
Unfreeze
)
saveUnfreezeCreate
(
res
*
uf
.
ReceiptUnfreeze
)
(
kvs
[]
*
types
.
KeyValue
)
{
kvs
=
localKeys
(
res
,
[]
byte
(
res
.
Cur
.
UnfreezeID
))
return
...
...
executor/exec_test.go
0 → 100644
View file @
b2ba7b74
package
executor
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