cosmwasm-stargate: Use DateTime to encode times

This commit is contained in:
willclarktech 2020-12-15 11:31:10 +00:00
parent 1fe99ffc0f
commit 9ce5241b9b
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -30,6 +30,7 @@ import {
adaptor34,
broadcastTxCommitSuccess,
Client as TendermintClient,
DateTime,
QueryString,
} from "@cosmjs/tendermint-rpc";
import { assert } from "@cosmjs/utils";
@ -114,7 +115,7 @@ export class CosmWasmClient {
},
height: response.block.header.height,
chainId: response.block.header.chainId,
time: response.block.header.time.toISOString(),
time: DateTime.encode(response.block.header.time),
},
txs: response.block.txs,
};