diff options
author | obscuren <geffobscura@gmail.com> | 2014-08-17 18:41:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-08-17 18:41:52 +0800 |
commit | d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33 (patch) | |
tree | 8cd26b6371163390685a32a027d6f9bad1ce7772 /ethpipe/js_pipe.go | |
parent | 4bd6003b7fea3d6291f2ebde8b9f9264f1749985 (diff) | |
download | go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.tar go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.tar.gz go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.tar.bz2 go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.tar.lz go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.tar.xz go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.tar.zst go-tangerine-d79387c27e5bbbbed1d02cb9c57cbb7c5bd9fc33.zip |
Mutan compile
Diffstat (limited to 'ethpipe/js_pipe.go')
-rw-r--r-- | ethpipe/js_pipe.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go index a2d3fdf10..2f1f90462 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) +} |