Skip to content

Commit

Permalink
mobile: remove deprecated code (ethereum#23357)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1charlie authored Aug 10, 2021
1 parent 6d17546 commit e4b687c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions mobile/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,19 +292,6 @@ func (tx *Transaction) GetNonce() int64 { return int64(tx.tx.Nonce()) }
func (tx *Transaction) GetHash() *Hash { return &Hash{tx.tx.Hash()} }
func (tx *Transaction) GetCost() *BigInt { return &BigInt{tx.tx.Cost()} }

// Deprecated: GetSigHash cannot know which signer to use.
func (tx *Transaction) GetSigHash() *Hash { return &Hash{types.HomesteadSigner{}.Hash(tx.tx)} }

// Deprecated: use EthereumClient.TransactionSender
func (tx *Transaction) GetFrom(chainID *BigInt) (address *Address, _ error) {
var signer types.Signer = types.HomesteadSigner{}
if chainID != nil {
signer = types.NewEIP155Signer(chainID.bigint)
}
from, err := types.Sender(signer, tx.tx)
return &Address{from}, err
}

func (tx *Transaction) GetTo() *Address {
if to := tx.tx.To(); to != nil {
return &Address{*to}
Expand Down

0 comments on commit e4b687c

Please sign in to comment.