-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve implementation of deployContract overrides
- Loading branch information
Showing
2 changed files
with
19 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { FactoryOptions } from "../src/types"; | ||
|
||
// FactoryOptions shouldn't have mandatory properties | ||
const _factoryOptions: FactoryOptions = {}; | ||
|
||
// FactoryOptions only has these two properties. | ||
// If new ones are added, then the deployContract | ||
// implementation should be updated to also delete | ||
// those new extra properties | ||
const _factoryOptionsRequired: Required<FactoryOptions> = { | ||
signer: null as any, | ||
libraries: null as any, | ||
}; |