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
a0f35d32
Commit
a0f35d32
authored
Apr 28, 2014
by
Casey Kuhlman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PreProcess moved to Mutan package
parent
68e55688
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ui_lib.go
ethereal/ui/ui_lib.go
+2
-1
compile.go
utils/compile.go
+1
-2
No files found.
ethereal/ui/ui_lib.go
View file @
a0f35d32
...
...
@@ -6,6 +6,7 @@ import (
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/mutan"
"github.com/ethereum/go-ethereum/utils"
"github.com/go-qml/qml"
"os"
...
...
@@ -172,7 +173,7 @@ func DefaultAssetPath() string {
func
(
ui
*
UiLib
)
DebugTx
(
recipient
,
valueStr
,
gasStr
,
gasPriceStr
,
data
string
)
{
state
:=
ui
.
eth
.
BlockChain
()
.
CurrentBlock
.
State
()
mainInput
,
_
:=
ethutil
.
PreProcess
(
data
)
mainInput
,
_
:=
mutan
.
PreProcess
(
data
)
callerScript
,
err
:=
utils
.
Compile
(
mainInput
)
if
err
!=
nil
{
ethutil
.
Config
.
Log
.
Debugln
(
err
)
...
...
utils/compile.go
View file @
a0f35d32
...
...
@@ -2,7 +2,6 @@ package utils
import
(
"fmt"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/mutan"
"strings"
)
...
...
@@ -25,7 +24,7 @@ func Compile(script string) ([]byte, error) {
func
CompileScript
(
script
string
)
([]
byte
,
[]
byte
,
error
)
{
// Preprocess
mainInput
,
initInput
:=
ethutil
.
PreProcess
(
script
)
mainInput
,
initInput
:=
mutan
.
PreProcess
(
script
)
// Compile main script
mainScript
,
err
:=
Compile
(
mainInput
)
if
err
!=
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