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/optics-core/test/utils.js

22 lines
507 B

const increaseTimestampBy = async (provider, increaseTime) => {
await provider.send('evm_increaseTime', [increaseTime]);
await provider.send('evm_mine');
};
function getUnusedSigner(provider, numUsedSigners) {
const wallets = provider.getWallets();
if (wallets.length == numUsedSigners) {
throw new Error('need more wallets to get an extra random signer');
}
return wallets[numUsedSigners];
}
const testUtils = {
increaseTimestampBy,
getUnusedSigner,
};
module.exports = testUtils;