We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 264b87a commit bf68e03Copy full SHA for bf68e03
utils/tools.ts
@@ -1,13 +1,13 @@
1
// SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]>
2
// SPDX-License-Identifier: Apache-2.0
3
4
-import { Signature, toBeHex, type BigNumberish } from 'ethers';
+import { Signature } from 'ethers';
5
import { ethers } from 'hardhat';
6
7
export function compactSignature(signature: string): string {
8
return Signature.from(signature).compactSerialized;
9
}
10
11
-export function BN2Address(bignumber: BigNumberish) {
12
- return ethers.getAddress(toBeHex(bignumber));
+export function bigintToAddress(bigint: bigint) {
+ return ethers.getAddress(ethers.toBeHex(bigint));
13
0 commit comments