Skip to content

Commit

Permalink
Merge pull request #80 from hasToDev/preamble-fix
Browse files Browse the repository at this point in the history
restorePreamble JSON parsing fix
  • Loading branch information
christian-rogobete authored Nov 22, 2023
2 parents eaf5b06 + b74f855 commit 2e6173f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The Soneso open source Stellar SDK for Flutter is build with Dart and provides A
1. Add the dependency to your pubspec.yaml file:
```
dependencies:
stellar_flutter_sdk: ^1.6.6
stellar_flutter_sdk: ^1.6.9
```
2. Install it (command line or IDE):
```
Expand Down
8 changes: 4 additions & 4 deletions lib/src/soroban/soroban_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,13 @@ class SimulateTransactionResponse extends SorobanRpcResponse {
json['result']['transactionData']);
}

if (json['events'] != null) {
response.events = List<String>.from(json['events'].map((e) => e));
if (json['result']['events'] != null) {
response.events = List<String>.from(json['result']['events'].map((e) => e));
}

if (json['restorePreamble'] != null) {
if (json['result']['restorePreamble'] != null) {
response.restorePreamble =
RestorePreamble.fromJson(json['restorePreamble']);
RestorePreamble.fromJson(json['result']['restorePreamble']);
}

response.minResourceFee = convertInt(json['result']['minResourceFee']);
Expand Down

0 comments on commit 2e6173f

Please sign in to comment.