Skip to content

Commit

Permalink
Merge pull request #34 from compleatang/develop
Browse files Browse the repository at this point in the history
PreProcess moved to Mutan package
  • Loading branch information
obscuren committed Apr 28, 2014
2 parents 68e5568 + a0f35d3 commit c0de119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ethereal/ui/ui_lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions utils/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package utils

import (
"fmt"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/mutan"
"strings"
)
Expand All @@ -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 {
Expand Down

0 comments on commit c0de119

Please sign in to comment.