Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Feb 20, 2024
1 parent ef2bea5 commit 34e7d99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/apis/sign_api/sign_engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1278,16 +1278,17 @@ class SignEngine implements ISignEngine {
request.request.method,
);

// else, we send an onSessionRequest event
// We send onSessionRequest event on every session request,
// the developer can decide wether to use it or just register method handlers
onSessionRequest.broadcast(
SessionRequestEvent.fromSessionRequest(
sessionRequest,
),
);

final methodHandler = _methodHandlers[methodKey];
// If a method handler has been set using registerRequestHandler we use it to process the request
if (methodHandler != null) {
// If a method handler has been set using registerRequestHandler we use it to process the request
try {
final result = await methodHandler(topic, request.request.params);
await core.pairing.sendResult(
Expand Down

0 comments on commit 34e7d99

Please sign in to comment.