Skip to content
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

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

pcarranzav
Copy link
Member

No description provided.

Maikol
Maikol previously approved these changes Jan 11, 2024
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4827631) 92.69% compared to head (78bb79f) 92.69%.

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           
Flag Coverage Δ
unittests 92.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tmigone tmigone left a 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

@tmigone
Copy link
Contributor

tmigone commented Jan 11, 2024

Btw this code duplication problem should be resolved once we get rid of the cli folder.

tmigone
tmigone previously approved these changes Jan 12, 2024
Copy link
Contributor

@tmigone tmigone left a 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
Copy link
Contributor

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

@pcarranzav pcarranzav merged commit 14785af into main Jan 12, 2024
7 checks passed
@pcarranzav pcarranzav deleted the pcv/fix-cli-wrapcalls branch January 12, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants