Skip to content

Commit

Permalink
Fixing lowercase address verification (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
y3fers0n authored Apr 25, 2024
1 parent 6819e7e commit d6f74bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/trust-min.js
Git LFS file not shown
4 changes: 2 additions & 2 deletions src/ethereum_provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class TrustWeb3Provider extends BaseProvider {

if (
typeof payload.params?.[0].toLowerCase() === "string" &&
this.address === payload.params?.[0].toLowerCase()
this.address.toLowerCase() === payload.params?.[0].toLowerCase()
) {
message = payload.params[1];
address = payload.params[0];
Expand Down Expand Up @@ -302,7 +302,7 @@ class TrustWeb3Provider extends BaseProvider {

if (
typeof payload.params?.[0] === "string" &&
this.address === payload.params?.[0].toLowerCase()
this.address.toLowerCase() === payload.params?.[0].toLowerCase()
) {
data = payload.params[1];
address = payload.params[0];
Expand Down

0 comments on commit d6f74bb

Please sign in to comment.