This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
Add NewError -> Result with no data
pull/1780/head
Jae Kwon
9 years ago
parent
55e2ce9de2
commit
06a0ac8188
1 changed files
with
7 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-0
types/result.go
+ 7
- 0
types/result.go
View File
@ -35,3 +35,10 @@ func NewResultOK(data []byte, log string) Result {
Log
:
log
,
Log
:
log
,
}
}
}
}
func
NewError
(
code
CodeType
,
log
string
)
Result
{
return
Result
{
Code
:
code
,
Log
:
log
,
}
}
Write
Preview
Loading…
Cancel
Save