-
Notifications
You must be signed in to change notification settings - Fork 27
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
Execute prompt uses webauthn insteaf of session #465
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe recent modifications to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- packages/keychain/src/components/Execute/index.tsx (2 hunks)
Additional comments not posted (2)
packages/keychain/src/components/Execute/index.tsx (2)
20-21
: Imports look good!The new imports
ETH_MIN_PREFUND
andnum
are necessary for the modifications in theonSubmit
function.
117-122
: Ensure accurate fee calculation.The changes correctly use
ETH_MIN_PREFUND
as a fallback formaxFee
. However, the TODO comment indicates that calculating WebAuthn validation cost separately is a future improvement.
If dapp doesn't include a method in policy then we'll prompt for execution, flow will be webauthn instead of session. However, for webauthn to have accurate estimated fees validation can't be skipped, this forces webauthn to prompt twice - once for estimate fee and then for actual invoke txn.
Hardcoding the maxfee for webauthn flow for now. Proper solution is to calculate webauthn validation cost separately and add it to estimated fee with skipped validation.
Summary by CodeRabbit
Execute
component to useETH_MIN_PREFUND
for more accurate transaction fee estimation.