aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/types.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-14 19:03:29 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-11-15 00:00:14 +0800
commit4a439c2359991bdc49463ae66da11da895cc6eb7 (patch)
treebb5ef79628597c67af9f13c2aa7ddcf59452d482 /mobile/types.go
parent4c16c82500645de83907743555e7256af86a9423 (diff)
downloadgo-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.tar
go-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.gz
go-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.bz2
go-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.lz
go-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.xz
go-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.zst
go-tangerine-4a439c2359991bdc49463ae66da11da895cc6eb7.zip
mobile: port wrappers to EIP155 and EIP158 fork
Diffstat (limited to 'mobile/types.go')
-rw-r--r--mobile/types.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile/types.go b/mobile/types.go
index 8f54d36f0..bb5ccc625 100644
--- a/mobile/types.go
+++ b/mobile/types.go
@@ -139,11 +139,11 @@ func (tx *Transaction) GetValue() *BigInt { return &BigInt{tx.tx.Value()} }
func (tx *Transaction) GetNonce() int64 { return int64(tx.tx.Nonce()) }
func (tx *Transaction) GetHash() *Hash { return &Hash{tx.tx.Hash()} }
-func (tx *Transaction) GetSigHash() *Hash { return &Hash{tx.tx.SigHash()} }
+func (tx *Transaction) GetSigHash() *Hash { return &Hash{tx.tx.SigHash(types.HomesteadSigner{})} }
func (tx *Transaction) GetCost() *BigInt { return &BigInt{tx.tx.Cost()} }
func (tx *Transaction) GetFrom() (*Address, error) {
- from, err := tx.tx.From()
+ from, err := types.Sender(types.HomesteadSigner{}, tx.tx)
return &Address{from}, err
}
@@ -155,7 +155,7 @@ func (tx *Transaction) GetTo() *Address {
}
func (tx *Transaction) WithSignature(sig []byte) (*Transaction, error) {
- t, err := tx.tx.WithSignature(sig)
+ t, err := tx.tx.WithSignature(types.HomesteadSigner{}, sig)
return &Transaction{t}, err
}