aave-protocol-v2/helpers/tenderly-utils.ts

8 lines
253 B
TypeScript
Raw Normal View History

import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DRE } from './misc-utils';
export const usingTenderly = () =>
DRE &&
((DRE as HardhatRuntimeEnvironment).network.name.includes('tenderly') ||
process.env.TENDERLY === 'true');