aboutsummaryrefslogtreecommitdiffstats
path: root/ethpipe/js_pipe.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-02 23:03:15 +0800
committerobscuren <geffobscura@gmail.com>2014-10-02 23:03:15 +0800
commit82be3054961864dfd5bbeaec2ab961f593203dbf (patch)
treeefde516d8219f253f2bc87f26ad6d4169c2dc587 /ethpipe/js_pipe.go
parenta34a971b508e1bc1fbeb3c2d02cbb8686d2491d8 (diff)
downloaddexon-82be3054961864dfd5bbeaec2ab961f593203dbf.tar.gz
dexon-82be3054961864dfd5bbeaec2ab961f593203dbf.tar.zst
dexon-82be3054961864dfd5bbeaec2ab961f593203dbf.zip
Fixed inconsistencies
Diffstat (limited to 'ethpipe/js_pipe.go')
-rw-r--r--ethpipe/js_pipe.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethpipe/js_pipe.go b/ethpipe/js_pipe.go
index 96990b671..24a553dad 100644
--- a/ethpipe/js_pipe.go
+++ b/ethpipe/js_pipe.go
@@ -233,16 +233,16 @@ func (self *JSPipe) Transact(key, toStr, valueStr, gasStr, gasPriceStr, codeStr
self.obj.TxPool().QueueTransaction(tx)
if contractCreation {
- logger.Infof("Contract addr %x", tx.CreationAddress())
+ logger.Infof("Contract addr %x", tx.CreationAddress(self.World().State()))
}
- return NewJSReciept(contractCreation, tx.CreationAddress(), tx.Hash(), keyPair.Address()), nil
+ return NewJSReciept(contractCreation, tx.CreationAddress(self.World().State()), tx.Hash(), keyPair.Address()), nil
}
func (self *JSPipe) PushTx(txStr string) (*JSReceipt, error) {
tx := ethchain.NewTransactionFromBytes(ethutil.Hex2Bytes(txStr))
self.obj.TxPool().QueueTransaction(tx)
- return NewJSReciept(tx.CreatesContract(), tx.CreationAddress(), tx.Hash(), tx.Sender()), nil
+ return NewJSReciept(tx.CreatesContract(), tx.CreationAddress(self.World().State()), tx.Hash(), tx.Sender()), nil
}
func (self *JSPipe) CompileMutan(code string) string {