Skip to content

Commit

Permalink
fix: filter duplicated contracts (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
killroy192 authored Mar 6, 2024
1 parent fc21f32 commit 1a3b375
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dgma/hardhat-sol-bundler",
"version": "0.5.5",
"version": "0.5.6",
"description": "Declarative deployment tool for smart contracts",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/deploy/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,15 @@ export const serialize: ContextManipulator = async (
const abi = cst.contract!.interface.fragments.concat(
cst.proxy
? cst.factory!.interface.fragments.filter((fragment) => {
const isNotValid =
const isValid =
fragment.type !== "constructor" && fragment.type !== "fallback";

if (isNotValid) {
if (!isValid) {
console.warn(
`contract ${cst.name} has intersect fragments for constructor or fallback. Chose those which describes proxy contract`,
);
}
return isValid;
})
: [],
);
Expand Down

0 comments on commit 1a3b375

Please sign in to comment.