-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: remove simulation #4417
feat: remove simulation #4417
Conversation
🦋 Changeset detectedLatest commit: 5188b58 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -86,7 +86,7 @@ export type CreateWriteContractReturnType< | |||
| undefined | |||
} | |||
: Compute<ChainIdParameter<config, chainId>>) & | |||
ConnectorParameter & { __mode?: 'prepared' } |
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.
Might be good to leave __mode
here and just add a @deprecated
comment so people that upgrade don't experience unexpected type errors if they were passing this in directly (to skip simulation).
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.
Probably good to keep and deprecate __mode
here too.
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.
I'd keep this around too
Size Change: 0 B Total Size: 797 kB ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4417 +/- ##
==========================================
- Coverage 93.91% 85.72% -8.19%
==========================================
Files 278 271 -7
Lines 7178 6956 -222
Branches 831 699 -132
==========================================
- Hits 6741 5963 -778
- Misses 424 976 +552
- Partials 13 17 +4 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Modern wallets (and wallets in general) should be smart enough to perform simulation & estimate gas on their side. This PR removes the need to perform simulations & gas estimations from the send trasnaction & contract write actions.