-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: override type in CLI to allow wrapping contract calls #911
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #911 +/- ##
=======================================
Coverage 92.69% 92.69%
=======================================
Files 46 46
Lines 2369 2369
Branches 426 426
=======================================
Hits 2196 2196
Misses 173 173
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Can you also make this change in the SDK? packages/sdk/src/deployments/lib/contracts/tx-log.ts
Btw this code duplication problem should be resolved once we get rid of the cli folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving so you can merge but left one comment!
@@ -66,7 +71,7 @@ export function wrapCalls(contract: Contract, contractName: string): Contract { | |||
wrappedContract.functions[fn] = override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove:
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
bb98512
to
78bb79f
Compare
No description provided.