The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/solidity/test/signer.ts

12 lines
351 B

import type { Wallet } from 'ethers';
import hre from 'hardhat';
export async function getSigners(): Promise<Wallet[]> {
// @ts-ignore Hardhat type overrides from @nomiclabs/hardhat-ethers don't work
return hre.ethers.getSigners();
}
export async function getSigner(): Promise<Wallet> {
const [signer] = await getSigners();
return signer;
}