aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-17 18:42:02 +0800
committerobscuren <geffobscura@gmail.com>2014-08-17 18:42:02 +0800
commit4008ff32c903e6894f5fb4fb69c795641641d192 (patch)
treea21d68425218d143f18b4771e6ecfa927e37f5c6
parentd79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33 (diff)
downloadgo-tangerine-4008ff32c903e6894f5fb4fb69c795641641d192.tar.gz
go-tangerine-4008ff32c903e6894f5fb4fb69c795641641d192.tar.zst
go-tangerine-4008ff32c903e6894f5fb4fb69c795641641d192.zip
Mutan compile
-rw-r--r--ethpipe/pipe.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethpipe/pipe.go b/ethpipe/pipe.go
index 8a81734cd..800a71139 100644
--- a/ethpipe/pipe.go
+++ b/ethpipe/pipe.go
@@ -148,3 +148,12 @@ func (self *Pipe) Transact(key *ethcrypto.KeyPair, rec []byte, value, gas, price
return tx.Hash(), nil
}
+
+func (self *Pipe) CompileMutan(code string) ([]byte, error) {
+ data, err := ethutil.Compile(code, false)
+ if err != nil {
+ return nil, err
+ }
+
+ return data, nil
+}