UNPKG

@solidstate/hardhat-4byte-uploader

Version:

Upload local function selectors to the Ethereum Selector Database

21 lines (17 loc) 488 B
import './tasks/compile'; import './tasks/upload_selectors'; import { extendConfig } from 'hardhat/config'; declare module 'hardhat/types/config' { export interface HardhatUserConfig { fourByteUploader?: { runOnCompile?: boolean }; } export interface HardhatConfig { fourByteUploader: { runOnCompile: boolean }; } } extendConfig((config, userConfig) => { config.fourByteUploader = Object.assign( { runOnCompile: false }, userConfig.fourByteUploader, ); });