From d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 17 Aug 2014 12:41:52 +0200 Subject: [PATCH] Mutan compile --- ethpipe/js_pipe.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go index a2d3fdf100..2f1f904620 100644 --- a/ethpipe/js_pipe.go +++ b/ethpipe/js_pipe.go @@ -166,3 +166,12 @@ func (self *JSPipe) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr return NewJSReciept(contractCreation, tx.CreationAddress(), tx.Hash(), keyPair.Address()), nil } + +func (self *JSPipe) CompileMutan(code string) string { + data, err := self.Pipe.CompileMutan(code) + if err != nil { + return err.Error() + } + + return ethutil.Bytes2Hex(data) +}