We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80f7c6c commit eb92522Copy full SHA for eb92522
mobile/types.go
@@ -264,8 +264,11 @@ func (tx *Transaction) GetHash() *Hash { return &Hash{tx.tx.Hash()} }
264
func (tx *Transaction) GetSigHash() *Hash { return &Hash{tx.tx.SigHash(types.HomesteadSigner{})} }
265
func (tx *Transaction) GetCost() *BigInt { return &BigInt{tx.tx.Cost()} }
266
267
-func (tx *Transaction) GetFrom() (address *Address, _ error) {
268
- from, err := types.Sender(types.HomesteadSigner{}, tx.tx)
+func (tx *Transaction) GetFrom(chainID *BigInt) (address *Address, _ error) {
+ if chainID == nil { // Null passed from mobile app
269
+ chainID = new(BigInt)
270
+ }
271
+ from, err := types.Sender(types.NewEIP155Signer(chainID.bigint), tx.tx)
272
return &Address{from}, err
273
}
274
0 commit comments