Skip to content

Commit e4b687c

Browse files
author
Zachinquarantine
authored
mobile: remove deprecated code (#23357)
1 parent 6d17546 commit e4b687c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

mobile/types.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -292,19 +292,6 @@ func (tx *Transaction) GetNonce() int64 { return int64(tx.tx.Nonce()) }
292292
func (tx *Transaction) GetHash() *Hash { return &Hash{tx.tx.Hash()} }
293293
func (tx *Transaction) GetCost() *BigInt { return &BigInt{tx.tx.Cost()} }
294294

295-
// Deprecated: GetSigHash cannot know which signer to use.
296-
func (tx *Transaction) GetSigHash() *Hash { return &Hash{types.HomesteadSigner{}.Hash(tx.tx)} }
297-
298-
// Deprecated: use EthereumClient.TransactionSender
299-
func (tx *Transaction) GetFrom(chainID *BigInt) (address *Address, _ error) {
300-
var signer types.Signer = types.HomesteadSigner{}
301-
if chainID != nil {
302-
signer = types.NewEIP155Signer(chainID.bigint)
303-
}
304-
from, err := types.Sender(signer, tx.tx)
305-
return &Address{from}, err
306-
}
307-
308295
func (tx *Transaction) GetTo() *Address {
309296
if to := tx.tx.To(); to != nil {
310297
return &Address{*to}

0 commit comments

Comments
 (0)