diff --git a/src/common/utils/address.ts b/src/common/utils/address.ts index f75be3f..90e6a2e 100644 --- a/src/common/utils/address.ts +++ b/src/common/utils/address.ts @@ -18,7 +18,7 @@ import type { AccountId } from "../types/lending.js"; export function getRandomGenericAddress(): GenericAddress { return pad(privateKeyToAccount(generatePrivateKey()).address, { size: BYTES32_LENGTH, - }) as GenericAddress; + }).toLowerCase() as GenericAddress; } export function isGenericAddress(address: GenericAddress): boolean { @@ -37,7 +37,7 @@ export function convertToGenericAddress( case ChainType.EVM: return pad(address as EvmAddress, { size: BYTES32_LENGTH, - }) as GenericAddress; + }).toLowerCase() as GenericAddress; default: return exhaustiveCheck(fromChainType); }