aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
+}