Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!
Open sidebar
19315872692
vm-native
Commits
9f1d88bc
Commit
9f1d88bc
authored
Jan 26, 2022
by
Devin Zeng
👽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix native return result 'ok' bug
parent
26fe87a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/result.go
common/result.go
+3
-3
No files found.
common/result.go
View file @
9f1d88bc
...
@@ -35,9 +35,9 @@ func ResultBytesAndError(returnResult []byte, err error) *common.ContractResult
...
@@ -35,9 +35,9 @@ func ResultBytesAndError(returnResult []byte, err error) *common.ContractResult
ContractEvent
:
nil
,
ContractEvent
:
nil
,
}
}
}
}
if
len
(
returnResult
)
==
0
{
//
if len(returnResult) == 0 {
returnResult
=
[]
byte
(
"ok"
)
//
returnResult = []byte("ok")
}
//
}
return
&
common
.
ContractResult
{
return
&
common
.
ContractResult
{
Code
:
0
,
Code
:
0
,
Result
:
returnResult
,
Result
:
returnResult
,
...
...
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