Skip to content

Commit

Permalink
fix: compare lower case addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Feb 2, 2024
1 parent 0ac4f0d commit e66496b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wallets/rn_cli_wallet/src/utils/HelperUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,11 @@ export function getSignTypedDataParamsData(params: string[]) {
export function getWalletAddressFromParams(addresses: string[], params: any) {
const paramsString = JSON.stringify(params);
let address = '';

addresses.forEach(addr => {
if (paramsString.includes(addr.toLowerCase())) {
if (paramsString.toLowerCase().includes(addr.toLowerCase())) {
address = addr;
}
});

return address;
}

Expand Down

0 comments on commit e66496b

Please sign in to comment.