diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-18 22:18:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-18 22:18:13 +0800 |
commit | db494170dc819b1eb0d267b6e1ab36c6cfb63569 (patch) | |
tree | 8e2b374519a0ae5e20a9db0c2a4a86bf3375329e /xeth/hexface.go | |
parent | 9e286e1c337319f47b2b04e9e1022ac05470a296 (diff) | |
download | go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.tar go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.tar.gz go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.tar.bz2 go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.tar.lz go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.tar.xz go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.tar.zst go-tangerine-db494170dc819b1eb0d267b6e1ab36c6cfb63569.zip |
Created generic message (easy for testing)
Diffstat (limited to 'xeth/hexface.go')
-rw-r--r-- | xeth/hexface.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/hexface.go b/xeth/hexface.go index 75ec5f43d..8fb42b4db 100644 --- a/xeth/hexface.go +++ b/xeth/hexface.go @@ -216,7 +216,7 @@ func (self *JSXEth) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr return "", err } if types.IsContractAddr(to) { - return ethutil.Bytes2Hex(tx.CreationAddress(nil)), nil + return ethutil.Bytes2Hex(core.AddressFromMessage(tx)), nil } return ethutil.Bytes2Hex(tx.Hash()), nil @@ -229,7 +229,7 @@ func (self *JSXEth) PushTx(txStr string) (*JSReceipt, error) { return nil, err } - return NewJSReciept(tx.CreatesContract(), tx.CreationAddress(self.World().State()), tx.Hash(), tx.Sender()), nil + return NewJSReciept(tx.CreatesContract(), core.AddressFromMessage(tx), tx.Hash(), tx.From()), nil } func (self *JSXEth) CompileMutan(code string) string { |