mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-08 17:21:47 +00:00
Mutan compile
This commit is contained in:
parent
4bd6003b7f
commit
d79387c27e
1 changed files with 9 additions and 0 deletions
|
|
@ -166,3 +166,12 @@ func (self *JSPipe) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr
|
||||||
|
|
||||||
return NewJSReciept(contractCreation, tx.CreationAddress(), tx.Hash(), keyPair.Address()), nil
|
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)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue