Skip to content

refactor(EWM-428): simulateTransactionTree with ton network #865

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:app/app/service/service.dart';
import 'package:app/feature/messenger/data/message.dart';
import 'package:app/feature/messenger/domain/service/messenger_service.dart';
import 'package:app/utils/utils.dart';
Expand Down Expand Up @@ -87,13 +86,10 @@ class SendMessageModel extends ElementaryModel {
required Address address,
required UnsignedMessage message,
}) =>
// TODO(komarov): remove when fixed in nekoton
transport.networkType == 'ton'
? Future.value([])
: _nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);
_nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);

String? getSeedName(PublicKey custodian) =>
_nekotonRepository.seedList.findSeedKey(custodian)?.name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,10 @@ class TCSendMessageModel extends ElementaryModel {
required Address address,
required UnsignedMessage message,
}) =>
// TODO(komarov): remove when fixed in nekoton
transport.networkType == 'ton'
? Future.value([])
: _nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);
_nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);

String? getSeedName(PublicKey custodian) =>
_nekotonRepository.seedList.findSeedKey(custodian)?.name;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ class TokenWalletSendModel extends ElementaryModel {
required Address address,
required UnsignedMessage message,
}) =>
transport.networkType == 'ton'
? Future<List<TxTreeSimulationErrorItem>>.value([])
: _nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);
_nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);

Future<Future<Transaction>> sendMessage({
required Address address,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ class TonWalletSendModel extends ElementaryModel {
required Address address,
required UnsignedMessage message,
}) =>
transport.networkType == 'ton'
? Future<List<TxTreeSimulationErrorItem>>.value([])
: _nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);
_nekotonRepository.simulateTransactionTree(
address: address,
message: message,
);

Future<Future<Transaction>> sendMessage({
required Address address,
Expand Down