Fixed non-checksum address comparisons in abstract Signer (#1236).

This commit is contained in:
Richard Moore 2021-01-12 21:43:49 -05:00
parent e0ccafb140
commit 8175c83026
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -173,7 +173,7 @@ export abstract class Signer {
Promise.resolve(tx.from), Promise.resolve(tx.from),
this.getAddress() this.getAddress()
]).then((result) => { ]).then((result) => {
if (result[0] !== result[1]) { if (result[0].toLowerCase() !== result[1].toLowerCase()) {
logger.throwArgumentError("from address mismatch", "transaction", transaction); logger.throwArgumentError("from address mismatch", "transaction", transaction);
} }
return result[0]; return result[0];