Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
张蕾
Geth-Modification
Commits
b73c07dd
Commit
b73c07dd
authored
Sep 23, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/0.6.5-2' into develop
parents
1b66e1c9
ac5e86b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
script.go
ethutil/script.go
+1
-0
script_windows.go
ethutil/script_windows.go
+31
-0
No files found.
ethutil/script.go
View file @
b73c07dd
// +build !windows
package
ethutil
import
(
...
...
ethutil/script_windows.go
0 → 100644
View file @
b73c07dd
package
ethutil
import
(
"fmt"
"strings"
"github.com/obscuren/mutan"
"github.com/obscuren/mutan/backends"
)
// General compile function
func
Compile
(
script
string
,
silent
bool
)
(
ret
[]
byte
,
err
error
)
{
if
len
(
script
)
>
2
{
compiler
:=
mutan
.
NewCompiler
(
backend
.
NewEthereumBackend
())
compiler
.
Silent
=
silent
byteCode
,
errors
:=
compiler
.
Compile
(
strings
.
NewReader
(
script
))
if
len
(
errors
)
>
0
{
var
errs
string
for
_
,
er
:=
range
errors
{
if
er
!=
nil
{
errs
+=
er
.
Error
()
}
}
return
nil
,
fmt
.
Errorf
(
"%v"
,
errs
)
}
return
byteCode
,
nil
}
return
nil
,
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