-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: upgrade web3 dependency to v4 in defender sdk #601
fix: upgrade web3 dependency to v4 in defender sdk #601
Conversation
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/[email protected], npm/[email protected] |
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, thanks. Once we release this sdk version, we can update the backend version for action layer
) | ||
.catch((err) => callback(err, undefined)); | ||
public async request<T>(payload: JsonRpcRequest<string[]>): Promise<JsonRpcResponseWithResult<T>> { | ||
const toJsonRpcResponse = (result: any): JsonRpcResponseWithResult<T> => ({ |
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.
this could be utility fn and not nested one
@@ -30,17 +35,18 @@ export type DefenderRelaySenderOptions = Partial<{ | |||
maxPriorityFeePerGas: BigUInt; | |||
speed: Speed; | |||
validForSeconds: number; | |||
authConfig: AuthConfig; |
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.
do we need authConfig here? used for logic from web3 module?
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.
nope, it's a leftover
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
Thanks!
Summary
Upgraded web3 js version from v1 to v4.
Adapted provider API to support EIP-1193
Testing Process