WA-521 Refactor transaction model type based on service's response

This commit is contained in:
apanizo 2018-08-10 17:36:14 +02:00
parent 2991cc8cd1
commit 03d632b755
1 changed files with 2 additions and 4 deletions

View File

@ -7,11 +7,10 @@ export type TransactionProps = {
name: string, name: string,
nonce: number, nonce: number,
value: number, value: number,
threshold: number,
confirmations: List<Confirmation>, confirmations: List<Confirmation>,
destination: string, destination: string,
tx: string,
data: string, data: string,
isExecuted: boolean,
} }
export const makeTransaction: RecordFactory<TransactionProps> = Record({ export const makeTransaction: RecordFactory<TransactionProps> = Record({
@ -20,9 +19,8 @@ export const makeTransaction: RecordFactory<TransactionProps> = Record({
value: 0, value: 0,
confirmations: List([]), confirmations: List([]),
destination: '', destination: '',
tx: '',
threshold: 0,
data: '', data: '',
isExecuted: false,
}) })
export type Transaction = RecordOf<TransactionProps> export type Transaction = RecordOf<TransactionProps>