good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
ac5e86b7
Commit
ac5e86b7
authored
10 years ago
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Removed windows support for serpent :-(
parent
0705bb3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ethutil/script.go
+1
-0
1 addition, 0 deletions
ethutil/script.go
ethutil/script_windows.go
+31
-0
31 additions, 0 deletions
ethutil/script_windows.go
with
32 additions
and
0 deletions
ethutil/script.go
+
1
−
0
View file @
ac5e86b7
// +build !windows
package
ethutil
import
(
...
...
This diff is collapsed.
Click to expand it.
ethutil/script_windows.go
0 → 100644
+
31
−
0
View file @
ac5e86b7
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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment