Skip to content

Commit

Permalink
fix: check irl for wc is obselete
Browse files Browse the repository at this point in the history
Signed-off-by: phuoc <[email protected]>
  • Loading branch information
phuocbitmark committed Feb 29, 2024
1 parent 8a30e46 commit 7547a24
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/screen/irl_screen/webview_irl_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ class _IRLWebScreenState extends State<IRLWebScreen> {
WCEthereumTransaction.fromJson(transaction),
account.wallet.uuid,
account.index,
isIRL: true,
);

final txHash = await Navigator.of(context).pushNamed(
Expand Down
5 changes: 1 addition & 4 deletions lib/screen/wallet_connect/send/wc_send_transaction_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _WCSendTransactionPageState extends State<WCSendTransactionPage> {
context,
title: 'confirmation'.tr(),
onBack: () {
Navigator.of(context).pop(false);
Navigator.of(context).pop();
},
),
body: BlocConsumer<WCSendTransactionBloc, WCSendTransactionState>(
Expand Down Expand Up @@ -224,7 +224,6 @@ class _WCSendTransactionPageState extends State<WCSendTransactionPage> {
widget.args.uuid,
widget.args.index,
topic: widget.args.topic,
isIRL: widget.args.isIRL,
),
);
}
Expand Down Expand Up @@ -444,14 +443,12 @@ class WCSendTransactionPageArgs {
final String uuid;
final int index;
final String? topic;
final bool isIRL;

WCSendTransactionPageArgs(
this.peerMeta,
this.transaction,
this.uuid,
this.index, {
this.topic,
this.isIRL = false,
});
}
2 changes: 0 additions & 2 deletions lib/screen/wallet_connect/send/wc_send_transaction_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class WCSendTransactionSendEvent extends WCSendTransactionEvent {
final String? data;
final String uuid;
final int index;
final bool isIRL;
final String? topic;

WCSendTransactionSendEvent(
Expand All @@ -43,7 +42,6 @@ class WCSendTransactionSendEvent extends WCSendTransactionEvent {
this.data,
this.uuid,
this.index, {
this.isIRL = false,
this.topic,
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/service/wc2_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class Wc2Service {
return await handler(topic, params);
}

Future<void> _checkResultWrapper(
Future<dynamic> _checkResultWrapper(
String topic, params, dynamic Function(String, dynamic)? handler) async {
if (handler == null) {
return;
Expand Down

0 comments on commit 7547a24

Please sign in to comment.