Skip to content

Commit

Permalink
refactor: adjust Transaction type
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackz committed Nov 5, 2023
1 parent 8293412 commit 25b6832
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions packages/camelot/src/create-test.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import type { Address, Hash, TransactionEIP1559, TransactionLegacy } from 'viem'
import type { Address, Hash } from 'viem'
import type { ActionParams } from '@rabbitholegg/questdk'

type Transaction =
| {
chainId: number
from: Address
hash?: Hash
input: string
to: Address
value: string
}
| TransactionLegacy
| TransactionEIP1559
interface Transaction {
chainId: number
from: Address
hash?: Hash
input: string
to: Address
value: string
}

export interface TestCase<T extends ActionParams> {
transaction: Transaction
Expand Down

0 comments on commit 25b6832

Please sign in to comment.