fix crash when opening a mocked transaction

This commit is contained in:
Mikhail Mikheev 2020-08-11 14:59:28 +04:00
parent 94de33aa5d
commit 41059c1e8e
3 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,7 @@ const createTransaction = ({
confirmations: [], // this is used to determine if a tx is pending or not. See `calculateTransactionStatus` helper
value: txArgs.valueInWei,
safeTxHash: generateSafeTxHash(safeAddress, txArgs),
submissionDate: new Date().toISOString(),
}
const mockedTx = await mockTransaction(txToMock, safeAddress, state)

View File

@ -108,6 +108,7 @@ const processTransaction = ({
...txArgs,
confirmations: [], // this is used to determine if a tx is pending or not. See `calculateTransactionStatus` helper
value: txArgs.valueInWei,
submissionDate: new Date().toISOString(),
}
const mockedTx = await mockTransaction(txToMock, safeAddress, state)

View File

@ -314,6 +314,7 @@ export type TxToMock = TxArgs & {
confirmations: []
safeTxHash: string
value: string
submissionDate: string
}
export const mockTransaction = (tx: TxToMock, safeAddress: string, state: AppReduxState): Promise<Transaction> => {