From e88f874b925c632b0697dc3ce9b08a8fd6526132 Mon Sep 17 00:00:00 2001 From: Minh Duc Date: Fri, 13 May 2022 17:11:20 +0700 Subject: [PATCH] fix: [TxResponseTranslator extension] Fix parse timestamp property (#278) --- .../lib/model/transaction_response.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/transaction_signing_gateway/lib/model/transaction_response.dart b/packages/transaction_signing_gateway/lib/model/transaction_response.dart index 5e81d6f6..6ae5d3ef 100644 --- a/packages/transaction_signing_gateway/lib/model/transaction_response.dart +++ b/packages/transaction_signing_gateway/lib/model/transaction_response.dart @@ -89,6 +89,6 @@ extension TxResponseTranslator on TxResponse { ), gasUsed: Decimal.parse('$gasUsed'), gasWanted: Decimal.parse('$gasWanted'), - timestamp: DateTime.fromMillisecondsSinceEpoch(int.parse(timestamp)), + timestamp: DateTime.fromMillisecondsSinceEpoch(int.tryParse(timestamp) ?? 0), ); }