fix crash when opening a mocked transaction
This commit is contained in:
parent
94de33aa5d
commit
41059c1e8e
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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> => {
|
||||
|
|
Loading…
Reference in New Issue