aboutsummaryrefslogtreecommitdiffstats
path: root/mobile/bind.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/bind.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/bind.go')
-rw-r--r--mobile/bind.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile/bind.go b/mobile/bind.go
index 79fb0e0e8..50adc6b0f 100644
--- a/mobile/bind.go
+++ b/mobile/bind.go
@@ -39,7 +39,7 @@ type signer struct {
}
func (s *signer) Sign(addr *Address, tx *Transaction) (*Transaction, error) {
- sig, err := s.sign(addr.address, tx.tx)
+ sig, err := s.sign(types.HomesteadSigner{}, addr.address, tx.tx)
if err != nil {
return nil, err
}
@@ -89,7 +89,7 @@ func (opts *TransactOpts) GetGasLimit() int64 { return opts.opts.GasLimit.Int6
func (opts *TransactOpts) SetFrom(from *Address) { opts.opts.From = from.address }
func (opts *TransactOpts) SetNonce(nonce int64) { opts.opts.Nonce = big.NewInt(nonce) }
func (opts *TransactOpts) SetSigner(s Signer) {
- opts.opts.Signer = func(addr common.Address, tx *types.Transaction) (*types.Transaction, error) {
+ opts.opts.Signer = func(signer types.Signer, addr common.Address, tx *types.Transaction) (*types.Transaction, error) {
sig, err := s.Sign(&Address{addr}, &Transaction{tx})
if err != nil {
return nil, err