-
Notifications
You must be signed in to change notification settings - Fork 2
Hanna/recombine signature fix #170
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
Conversation
WalkthroughRemoved the ProviderType import and the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/eoa/eoaHelpers.ts (1)
108-110: Minor: clean up batch deposit error messageThe error text
"Failed to submit batch deposit'}"contains an extra'}"at the end, which looks like a typo and may confuse consumers. Consider simplifying it:- } catch (error: any) { - throw new Error("Failed to submit batch deposit'}"); - } + } catch (error: any) { + throw new Error('Failed to submit batch deposit'); + }
🧹 Nitpick comments (2)
.eslintrc.js (1)
22-22: Test directory now fully excluded from ESLintAdding
**/test/**here means tests won’t be linted even if someone runseslint .from the repo root. If that’s intentional and you only care about lintingsrc, this looks good; otherwise consider narrowing the pattern or including tests in CI linting.package.json (1)
24-27: Lint/format scripts look good; consider fixingprettier-ciThe updated
lintandprettiercommands targeting./srcandsrc/**/*.{js,ts}look cleaner and consistent. However,prettier-cistill uses--ext, which Prettier’s CLI doesn’t support; if that script is ever used, it will likely fail. Consider aligning it with the new glob-based pattern:- "lint": "eslint ./src --ext .ts,.js --fix", - "lint-ci": "eslint ./src --ext .ts,.js", - "prettier-ci": "prettier --check ./src --ext .ts,.js", - "prettier": "prettier --write \"src/**/*.{js,ts}\"", + "lint": "eslint ./src --ext .ts,.js --fix", + "lint-ci": "eslint ./src --ext .ts,.js", + "prettier-ci": "prettier --check \"src/**/*.{js,ts}\"", + "prettier": "prettier --write \"src/**/*.{js,ts}\"",
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.eslintrc.js(1 hunks)package.json(1 hunks)src/eoa/eoaHelpers.ts(2 hunks)
🧰 Additional context used
🪛 ESLint
src/eoa/eoaHelpers.ts
[error] 28-28: Expected { after 'if' condition.
(curly)
🪛 GitHub Actions: Lint, Unit and E2E Tests
src/eoa/eoaHelpers.ts
[error] 28-28: ESLint: Expected { after 'if' condition curly
🪛 GitHub Check: build
src/eoa/eoaHelpers.ts
[failure] 28-28:
Expected { after 'if' condition
🔇 Additional comments (1)
src/eoa/eoaHelpers.ts (1)
2-25: Provider removal from EOA withdrawal helper looks consistentThe function only depends on
signer.sendTransaction, so dropping theproviderparameter and narrowing the import toSignerTypeis coherent with the current implementation. Just ensure all call sites have been updated to stop passing a provider and that no caller relied on provider-specific behavior (e.g. connected vs. disconnected signers).
|




Summary by CodeRabbit
Refactor
Chores
✏️ Tip: You can customize this high-level summary in your review settings.