Skip to content

Commit

Permalink
Fix: JunoSwap & history time OK-16352 OK-16453 OK-16454 (#2417)
Browse files Browse the repository at this point in the history
* chore: update inpage provider version

* fix: Cosmos history time
  • Loading branch information
ByteZhang1024 authored Jan 16, 2023
1 parent c60b513 commit 99a7fa8
Show file tree
Hide file tree
Showing 4 changed files with 172 additions and 172 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@
},
"dependencies": {
"@onekeyfe/blockchain-libs": "0.0.48",
"@onekeyfe/cross-inpage-provider-core": "1.1.16",
"@onekeyfe/cross-inpage-provider-errors": "1.1.16",
"@onekeyfe/cross-inpage-provider-injected": "1.1.16",
"@onekeyfe/cross-inpage-provider-types": "1.1.16",
"@onekeyfe/extension-bridge-hosted": "1.1.16",
"@onekeyfe/cross-inpage-provider-core": "1.1.17",
"@onekeyfe/cross-inpage-provider-errors": "1.1.17",
"@onekeyfe/cross-inpage-provider-injected": "1.1.17",
"@onekeyfe/cross-inpage-provider-types": "1.1.17",
"@onekeyfe/extension-bridge-hosted": "1.1.17",
"@onekeyfe/hd-ble-sdk": "0.2.22",
"@onekeyfe/hd-core": "0.2.22",
"@onekeyfe/hd-shared": "0.2.22",
"@onekeyfe/hd-transport": "0.2.22",
"@onekeyfe/hd-web-sdk": "0.2.22",
"@onekeyfe/js-sdk": "1.1.5",
"@onekeyfe/network-list": "1.6.38",
"@onekeyfe/onekey-cross-webview": "1.1.16",
"@onekeyfe/onekey-cross-webview": "1.1.17",
"@web3-react/core": "8.0.35-beta.0",
"@web3-react/empty": "8.0.20-beta.0",
"@web3-react/metamask": "8.0.28-beta.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/engine/src/vaults/impl/cosmos/Vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1016,9 +1016,9 @@ export default class Vault extends VaultBase {
.shiftedBy(-(token?.decimals ?? 6))
.toFixed(),
};
decodedTx.updatedAt = getTimeStamp();

decodedTx.createdAt = getTime(tx.data.timestamp) ?? decodedTx.updatedAt;
decodedTx.updatedAt =
getTime(new Date(tx.data.timestamp)) ?? getTimeStamp();
decodedTx.createdAt = decodedTx.updatedAt;
decodedTx.isFinal = decodedTx.status === IDecodedTxStatus.Confirmed;

return await this.buildHistoryTx({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export interface Data {
gas_wanted: string;
gas_used: string;
tx: Tx;
timestamp: Date;
timestamp: string;
}

export interface Tx {
Expand Down
Loading

0 comments on commit 99a7fa8

Please sign in to comment.