-
Notifications
You must be signed in to change notification settings - Fork 191
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
[Networking] #502 Add tll and prompt to requests #514
Conversation
} | ||
} | ||
struct AuthRequestProtocolMethod: ProtocolMethod { | ||
var method: String = "wc_authRequest" |
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.
why var?
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.
because xcode has generated it that as vars. Anyway good point, I am changing for lets
@@ -59,28 +59,29 @@ final class SessionEngine { | |||
let chainRequest = SessionType.RequestParams.Request(method: request.method, params: request.params) | |||
let sessionRequestParams = SessionType.RequestParams(request: chainRequest, chainId: request.chainId) | |||
|
|||
let rpcRequest = RPCRequest(method: SignProtocolMethod.sessionRequest.method, params: sessionRequestParams) | |||
try await networkingInteractor.request(rpcRequest, topic: request.topic, tag: SignProtocolMethod.sessionRequest.requestTag) | |||
let rpcRequest = RPCRequest(method: SessionRequestProtocolMethod().method, params: sessionRequestParams) |
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.
SessionRequestProtocolMethod() to variable? To avoid typo later
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.
but may be it better to isolate RPCRequest creation inside Networking package. But it another task of course
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, great job!
Description
Resolves #502
How Has This Been Tested?
with integrations tests
Due Dilligence