cosmwasm-stargate: Use DateTime to encode times
This commit is contained in:
parent
1fe99ffc0f
commit
9ce5241b9b
@ -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,
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user