Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
change type format
Browse files Browse the repository at this point in the history
  • Loading branch information
ramirotw committed Oct 7, 2021
1 parent b529355 commit a563197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/custom/state/enhancedTransactions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export const checkedTransaction = createAction<{
blockNumber: number
}>('enhancedTransactions/checkedTransaction')

export type REPLACEMENT_TYPE = 'speedup' | 'cancel'
export type ReplacementType = 'speedup' | 'cancel'

export const replaceTransaction = createAction<{
chainId: number
oldHash: string
newHash: string
type: REPLACEMENT_TYPE
type: ReplacementType
}>('enhancedTransactions/replaceTransaction')
4 changes: 2 additions & 2 deletions src/custom/state/enhancedTransactions/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
checkedTransaction,
finalizeTransaction,
replaceTransaction,
REPLACEMENT_TYPE,
ReplacementType,
// updateSafeTransactions,
} from 'state/enhancedTransactions/actions'
import { SerializableTransactionReceipt } from '@src/state/transactions/actions'
Expand All @@ -32,7 +32,7 @@ export interface EnhancedTransactionDetails {
approval?: { tokenAddress: string; spender: string }
presign?: { orderId: string }

replacementType?: REPLACEMENT_TYPE // if the user cancelled or speedup the tx it will be reflected here
replacementType?: ReplacementType // if the user cancelled or speedup the tx it will be reflected here
}

export interface EnhancedTransactionState {
Expand Down

0 comments on commit a563197

Please sign in to comment.