aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/pipe.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-03 21:05:19 +0800
committerobscuren <geffobscura@gmail.com>2014-12-03 21:05:19 +0800
commit82405501872385b240012070bad2f0eda643d423 (patch)
tree97fcdb3fb3be607d0b21e5da01bbd0f33372ffc2 /xeth/pipe.go
parent709eff4ea77b965cdf763ada8ab248e3d850406f (diff)
downloadgo-tangerine-82405501872385b240012070bad2f0eda643d423.tar
go-tangerine-82405501872385b240012070bad2f0eda643d423.tar.gz
go-tangerine-82405501872385b240012070bad2f0eda643d423.tar.bz2
go-tangerine-82405501872385b240012070bad2f0eda643d423.tar.lz
go-tangerine-82405501872385b240012070bad2f0eda643d423.tar.xz
go-tangerine-82405501872385b240012070bad2f0eda643d423.tar.zst
go-tangerine-82405501872385b240012070bad2f0eda643d423.zip
updated to types
Diffstat (limited to 'xeth/pipe.go')
-rw-r--r--xeth/pipe.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/xeth/pipe.go b/xeth/pipe.go
index 9cc163a81..c96c6efc0 100644
--- a/xeth/pipe.go
+++ b/xeth/pipe.go
@@ -93,7 +93,7 @@ func (self *XEth) Exists(addr []byte) bool {
return self.World().Get(addr) != nil
}
-func (self *XEth) TransactString(key *crypto.KeyPair, rec string, value, gas, price *ethutil.Value, data []byte) (*chain.Transaction, error) {
+func (self *XEth) TransactString(key *crypto.KeyPair, rec string, value, gas, price *ethutil.Value, data []byte) (*types.Transaction, error) {
// Check if an address is stored by this address
var hash []byte
addr := self.World().Config().Get("NameReg").StorageString(rec).Bytes()
@@ -108,10 +108,10 @@ func (self *XEth) TransactString(key *crypto.KeyPair, rec string, value, gas, pr
return self.Transact(key, hash, value, gas, price, data)
}
-func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *ethutil.Value, data []byte) (*chain.Transaction, error) {
+func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *ethutil.Value, data []byte) (*types.Transaction, error) {
var hash []byte
var contractCreation bool
- if chain.IsContractAddr(to) {
+ if types.IsContractAddr(to) {
contractCreation = true
} else {
// Check if an address is stored by this address
@@ -125,9 +125,9 @@ func (self *XEth) Transact(key *crypto.KeyPair, to []byte, value, gas, price *et
var tx *types.Transaction
if contractCreation {
- tx = chain.NewContractCreationTx(value.BigInt(), gas.BigInt(), price.BigInt(), data)
+ tx = types.NewContractCreationTx(value.BigInt(), gas.BigInt(), price.BigInt(), data)
} else {
- tx = chain.NewTransactionMessage(hash, value.BigInt(), gas.BigInt(), price.BigInt(), data)
+ tx = types.NewTransactionMessage(hash, value.BigInt(), gas.BigInt(), price.BigInt(), data)
}
state := self.blockManager.TransState()