aboutsummaryrefslogtreecommitdiffstats
path: root/chain/transaction.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-31 21:43:14 +0800
committerobscuren <geffobscura@gmail.com>2014-10-31 21:43:14 +0800
commitaf8f5f0b69f1c359991d12c7708804fe8dd1f944 (patch)
treedd3d5bea8d57037a2d32fae86c4ba7fcc9161b16 /chain/transaction.go
parent0ed1a8b50a9b9726cd57a2731d0405f6949c6188 (diff)
downloaddexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.tar
dexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.tar.gz
dexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.tar.bz2
dexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.tar.lz
dexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.tar.xz
dexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.tar.zst
dexon-af8f5f0b69f1c359991d12c7708804fe8dd1f944.zip
ethstate => state
Diffstat (limited to 'chain/transaction.go')
-rw-r--r--chain/transaction.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/chain/transaction.go b/chain/transaction.go
index 416ffbc6c..d393f0384 100644
--- a/chain/transaction.go
+++ b/chain/transaction.go
@@ -6,8 +6,8 @@ import (
"math/big"
"github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethstate"
"github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/state"
"github.com/obscuren/secp256k1-go"
)
@@ -78,7 +78,7 @@ func (tx *Transaction) IsContract() bool {
return tx.CreatesContract()
}
-func (tx *Transaction) CreationAddress(state *ethstate.State) []byte {
+func (tx *Transaction) CreationAddress(state *state.State) []byte {
// Generate a new address
addr := crypto.Sha3(ethutil.NewValue([]interface{}{tx.Sender(), tx.Nonce}).Encode())[12:]
//for i := uint64(0); state.GetStateObject(addr) != nil; i++ {
@@ -205,7 +205,7 @@ type Receipt struct {
PostState []byte
CumulativeGasUsed *big.Int
Bloom []byte
- logs ethstate.Logs
+ logs state.Logs
}
func NewRecieptFromValue(val *ethutil.Value) *Receipt {
@@ -222,7 +222,7 @@ func (self *Receipt) RlpValueDecode(decoder *ethutil.Value) {
it := decoder.Get(3).NewIterator()
for it.Next() {
- self.logs = append(self.logs, ethstate.NewLogFromValue(it.Value()))
+ self.logs = append(self.logs, state.NewLogFromValue(it.Value()))
}
}