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 26, 2021
1 parent 1237da4 commit e5ab265
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 @@ -28,13 +28,13 @@ 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')

export const updateSafeTransaction = createAction<{
Expand Down
4 changes: 2 additions & 2 deletions src/custom/state/enhancedTransactions/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
finalizeTransaction,
replaceTransaction,
updateSafeTransaction,
REPLACEMENT_TYPE,
ReplacementType,
} from 'state/enhancedTransactions/actions'
import { SafeMultisigTransactionResponse } from '@gnosis.pm/safe-service-client'
import { SerializableTransactionReceipt } from '@src/state/transactions/actions'
Expand Down Expand Up @@ -37,7 +37,7 @@ export interface EnhancedTransactionDetails {

// Wallet specific
safeTransaction?: SafeMultisigTransactionResponse // Gnosis Safe transaction info
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 e5ab265

Please sign in to comment.