Skip to content

Commit

Permalink
fix ts: add metadata and id as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Oct 6, 2023
1 parent b5b8e24 commit a511c47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,10 @@ export const processTxHistoryData = (
assets: assets.map(_remoteAssetAsTokenEntry),
id,
})),
outputs: tx.outputs.map(({address, assets, amount, id}) => ({
outputs: tx.outputs.map(({address, assets, amount}) => ({
address,
amount,
assets: assets.map(_remoteAssetAsTokenEntry),
id,
})),
amount: amount.asArray(),
fee: fee != null ? fee.asArray() : null,
Expand Down
7 changes: 4 additions & 3 deletions apps/wallet-mobile/src/yoroi-wallets/types/other.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,14 @@ export type TransactionInfo = {
tokens: Record<string, Token>
blockNumber: number
memo: null | string
metadata: TxMetadataInfo
metadata?: TxMetadataInfo
}

export type IOData = {
address: string
assets: Array<CardanoTypes.TokenEntry>
amount: string
id: string
id?: string
}

export type TransactionAssurance = 'PENDING' | 'FAILED' | 'LOW' | 'MEDIUM' | 'HIGH'
Expand Down Expand Up @@ -454,6 +454,7 @@ export type Transaction = {
address: string
amount: string
assets: Array<BaseAsset>
id?: string
}>
outputs: Array<{
address: string
Expand Down Expand Up @@ -481,7 +482,7 @@ export type Transaction = {
assets: Array<BaseAsset>
}>
memo: string | null
metadata: TxMetadata
readonly metadata?: TxMetadata
}

export type CommonMetadata = {
Expand Down

0 comments on commit a511c47

Please sign in to comment.