Skip to content

Commit

Permalink
Update parsing logic to preserve nanoseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Feb 11, 2021
1 parent 649fcde commit f1dbc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tendermint-rpc/src/adaptors/v0-33/responses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function decodeCommitSignature(data: RpcSignature): CommitSignature {
return {
blockIdFlag: decodeBlockIdFlag(data.block_id_flag),
validatorAddress: fromHex(data.validator_address),
timestamp: new Date(assertNotEmpty(data.timestamp)),
timestamp: DateTime.decode(assertNotEmpty(data.timestamp)),
signature: fromBase64(assertNotEmpty(data.signature)),
};
}
Expand Down

0 comments on commit f1dbc29

Please sign in to comment.