Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: Call sign message
Browse files Browse the repository at this point in the history
  • Loading branch information
reasje committed Aug 7, 2024
1 parent 3eb0c61 commit 1dd8307
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/features/dapps/subfeatures/open_dapp/open_dapp_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,28 @@ class OpenAppPage extends HookConsumerWidget {
url: url);
break;
case EIP1193.signMessage:
Map<String, dynamic> object = params["object"];
presenter.signMessage(
object: object,
cancel: () {
controller?.cancel(id);
},
success: (idHash) {
controller?.sendResult(idHash, id);
},
);
break;
case EIP1193.signPersonalMessage:
Map<String, dynamic> object = params["object"];
presenter.signMessage(
object: object,
cancel: () {
controller?.cancel(id);
},
success: (idHash) {
controller?.sendResult(idHash, id);
},
);
break;
case EIP1193.signTypedMessage:
Map<String, dynamic> object = params["object"];
Expand Down

0 comments on commit 1dd8307

Please sign in to comment.