Skip to content

Commit

Permalink
fix: allow sending test transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Mar 26, 2024
1 parent bb22403 commit d8a7177
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/network/explorer/explorer_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,11 @@ class ExplorerClient {
}
}

Future<dynamic> send({required Map<String, dynamic> transaction}) async {
Future<dynamic> send(
{required Map<String, dynamic> transaction, bool test = false}) async {
try {
var response = await client.post(api('transaction/send'), transaction);
var response = await client.post(
api('transaction/send'), {"test": test, "transaction": transaction});
if (response.containsKey('error')) {
throw ExplorerException(code: -3, message: response['error']);
}
Expand Down

0 comments on commit d8a7177

Please sign in to comment.