Skip to content

Commit

Permalink
remove useless lowercase calls
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Oct 28, 2023
1 parent 4778583 commit 6b1ce03
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/engine/paima-funnel/src/cde/erc20Deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function getCdeData(
// https://github.com/dethcrypto/TypeChain/issues/767
const events = (await timeout(
extension.contract.getPastEvents('Transfer', {
filter: { to: extension.depositAddress.toLocaleLowerCase() },
filter: { to: extension.depositAddress.toLowerCase() },
fromBlock: fromBlock,
toBlock: toBlock,
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/paima-sdk/paima-mw-core/src/wallets/algorand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function algorandLoginWrapper(
return {
success: true,
result: {
walletAddress: loginResult.result.getAddress().toLocaleLowerCase(),
walletAddress: loginResult.result.getAddress(),
},
};
}
2 changes: 1 addition & 1 deletion packages/paima-sdk/paima-mw-core/src/wallets/cardano.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function cardanoLoginWrapper(
return {
success: true,
result: {
walletAddress: loginResult.result.getAddress().toLocaleLowerCase(),
walletAddress: loginResult.result.getAddress(),
},
};
}
2 changes: 1 addition & 1 deletion packages/paima-sdk/paima-mw-core/src/wallets/evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function evmLoginWrapper(
return {
success: true,
result: {
walletAddress: EvmConnector.instance().getOrThrowProvider().getAddress().toLocaleLowerCase(),
walletAddress: EvmConnector.instance().getOrThrowProvider().getAddress(),
},
};
}
2 changes: 1 addition & 1 deletion packages/paima-sdk/paima-mw-core/src/wallets/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function polkadotLoginWrapper(
return {
success: true,
result: {
walletAddress: loginResult.result.getAddress().toLocaleLowerCase(),
walletAddress: loginResult.result.getAddress(),
},
};
}

0 comments on commit 6b1ce03

Please sign in to comment.