Skip to content

Commit

Permalink
Fixed non-checksum address comparisons in abstract Signer (#1236).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jan 13, 2021
1 parent e0ccafb commit 8175c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abstract-signer/src.ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export abstract class Signer {
Promise.resolve(tx.from),
this.getAddress()
]).then((result) => {
if (result[0] !== result[1]) {
if (result[0].toLowerCase() !== result[1].toLowerCase()) {
logger.throwArgumentError("from address mismatch", "transaction", transaction);
}
return result[0];
Expand Down

0 comments on commit 8175c83

Please sign in to comment.