Skip to content

Commit

Permalink
fix: [TxResponseTranslator extension] Fix parse timestamp property (#278
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mduccc authored May 13, 2022
1 parent 7f65891 commit e88f874
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}

0 comments on commit e88f874

Please sign in to comment.