diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-11-14 19:03:29 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-11-15 00:00:14 +0800 |
commit | 4a439c2359991bdc49463ae66da11da895cc6eb7 (patch) | |
tree | bb5ef79628597c67af9f13c2aa7ddcf59452d482 /mobile/types.go | |
parent | 4c16c82500645de83907743555e7256af86a9423 (diff) | |
download | dexon-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.gz dexon-4a439c2359991bdc49463ae66da11da895cc6eb7.tar.zst dexon-4a439c2359991bdc49463ae66da11da895cc6eb7.zip |
mobile: port wrappers to EIP155 and EIP158 fork
Diffstat (limited to 'mobile/types.go')
-rw-r--r-- | mobile/types.go | 6 |
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 } |