Fixed non-checksum address comparisons in abstract Signer (#1236).
This commit is contained in:
parent
e0ccafb140
commit
8175c83026
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user