Skip to content

Commit 9ee4987

Browse files
committed
fix: review
1 parent 3b9e176 commit 9ee4987

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/address.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function validateAndParseAddress(address: BigNumberish): string {
2222
return result;
2323
}
2424

25-
export const getChecksumAddress = (address: BigNumberish): string => {
25+
export function getChecksumAddress(address: BigNumberish): string {
2626
const chars = removeHexPrefix(validateAndParseAddress(address)).toLowerCase().split('');
2727
const hashed = arrayify(pedersen([0, address]), { hexPad: 'left' }); // as the hash will be 251 bits (63 chars) we need to pad it to 64 chars without changing the number value ("left")
2828

@@ -36,8 +36,8 @@ export const getChecksumAddress = (address: BigNumberish): string => {
3636
}
3737

3838
return addHexPrefix(chars.join(''));
39-
};
39+
}
4040

41-
export const validateChecksumAddress = (address: string): boolean => {
41+
export function validateChecksumAddress(address: string): boolean {
4242
return getChecksumAddress(address) === address;
43-
};
43+
}

0 commit comments

Comments
 (0)