-
Notifications
You must be signed in to change notification settings - Fork 760
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
verkle: extract static constructor #3616
Conversation
e48336c
to
1191c66
Compare
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.
LGTM
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -24,6 +21,8 @@ import { | |||
type VerkleTreeOptsWithDefaults, | |||
} from './types.js' | |||
|
|||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |||
import type { createVerkleTree } from './constructors.js' // Imported so intellisense can display docs |
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.
Ah, yeah, I stumbled over this as well at some point. It would really be good if this can be solved on a more global scale (all such imports auto-added or so), this problem is all over the place and it would be good if we could use this @link
feature from the docs more reliably.
(just as some PR-unrelated side note)
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.
Yup, have done some research on this but haven't quite solved it yet. We need to somehow link via something like {@link module#referencedType }
but I haven't figured out specifically how to implement yet.
ref issue: #3560
VerkleTree:
moves state
VerkleTree.create
to 'constructors.ts'renames it to
createVerkleTree