Skip to content

Commit bf68e03

Browse files
committed
refactor: rename BN2Address to bigintToAddress and update parameter type
1 parent 264b87a commit bf68e03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/tools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]>
22
// SPDX-License-Identifier: Apache-2.0
33

4-
import { Signature, toBeHex, type BigNumberish } from 'ethers';
4+
import { Signature } from 'ethers';
55
import { ethers } from 'hardhat';
66

77
export function compactSignature(signature: string): string {
88
return Signature.from(signature).compactSerialized;
99
}
1010

11-
export function BN2Address(bignumber: BigNumberish) {
12-
return ethers.getAddress(toBeHex(bignumber));
11+
export function bigintToAddress(bigint: bigint) {
12+
return ethers.getAddress(ethers.toBeHex(bigint));
1313
}

0 commit comments

Comments
 (0)