We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2769a4 commit 92b45fbCopy full SHA for 92b45fb
lib/src/schema/unstake_body.dart
@@ -57,8 +57,8 @@ class UnstakeBody extends GeneratedMessage {
57
factory UnstakeBody.fromJson(Map<String, dynamic> json) => UnstakeBody(
58
operator: PublicKeyHash.fromAddress(json["operator"]),
59
withdrawal: ValueTransferOutput.fromJson(json["withdrawal"]),
60
- fee: int.parse(json["fee"]),
61
- nonce: int.parse(json["nonce"]),
+ fee: json.containsKey('fee') ? json["fee"] : null,
+ nonce: json["nonce"],
62
);
63
64
factory UnstakeBody.fromPbBytes(Uint8List buffer) =>
0 commit comments