@solidstate/hardhat-selector-uploader
Version:
Upload local function selectors to the Ethereum Selector Database
13 lines (12 loc) • 466 B
JavaScript
import { uploadSelectors } from '../lib/selector_uploader.js';
import { isCi } from '@nomicfoundation/hardhat-utils/ci';
export default async () => ({
onCleanUpArtifacts: async (context, artifactPaths, next) => {
if (context.config.selectorUploader.runOnCompile &&
!context.globalOptions.noUploadSelectors &&
!isCi()) {
await uploadSelectors(context);
}
return next(context, artifactPaths);
},
});