@solidstate/hardhat-selector-uploader
Version:
Upload local function selectors to the Ethereum Selector Database
12 lines (11 loc) • 355 B
JavaScript
import { uploadSelectors } from '../lib/selector_uploader.js';
const action = async (args, hre) => {
if (hre.globalOptions.noUploadSelectors)
return;
if (!args.noCompile) {
hre.globalOptions.noUploadSelectors = true;
await hre.tasks.getTask('compile').run();
}
await uploadSelectors(hre);
};
export default action;