-
Notifications
You must be signed in to change notification settings - Fork 149
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:kakarot connectors #519
Conversation
6ee74df
to
a33c592
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.
Looks good. Can you fix the CI and the README so that I can merge and make a release?
d1358cf
to
5502dea
Compare
packages/core/src/connectors/base.ts
Outdated
@@ -45,7 +45,9 @@ export abstract class Connector extends EventEmitter<ConnectorEvents> { | |||
/** Whether connector is already authorized */ | |||
abstract ready(): Promise<boolean>; | |||
/** Connect wallet. */ | |||
abstract connect(): Promise<ConnectorData>; | |||
abstract connect(parameters?: { | |||
chainIdHint: bigint; |
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.
Here parameters
is optional, but chainIdHint
is required. Can you make chainIdHint
optional?
packages/core/src/connectors/base.ts
Outdated
abstract connect(parameters?: { | ||
chainIdHint: bigint; | ||
}): Promise<ConnectorData>; |
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.
abstract connect(parameters?: { | |
chainIdHint: bigint; | |
}): Promise<ConnectorData>; | |
abstract connect(parameters: { | |
chainIdHint?: bigint; | |
} = {}): Promise<ConnectorData>; |
Co-authored-by: Francesco Ceccon <[email protected]>
5502dea
to
1119b9a
Compare
Initial work on implementing a wrapper around EVM connectors through Kakarot