Skip to content

Commit

Permalink
Add test for importing free fn and constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ericglau committed Nov 8, 2023
1 parent 66f1976 commit 0264504
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/core/contracts/test/NamespacedToModifyImported.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {CONSTANT_USING_SELECTOR, plusTwo} from "./NamespacedToModify.sol";

contract Example {}
2 changes: 1 addition & 1 deletion packages/core/src/utils/make-namespaced.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SolcInput, SolcOutput } from '../solc-api';
import { BuildInfo } from 'hardhat/types';

test('make namespaced input', async t => {
const origBuildInfo = await artifacts.getBuildInfo('contracts/test/NamespacedToModify.sol:Example');
const origBuildInfo = await artifacts.getBuildInfo('contracts/test/NamespacedToModifyImported.sol:Example');
await testMakeNamespaced(origBuildInfo, t, '0.8.20');
});

Expand Down

0 comments on commit 0264504

Please sign in to comment.