Skip to content

Commit

Permalink
test(types): up
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Jun 12, 2024
1 parent cc4f446 commit 54e352b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/core/src/actions/deployContract.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@ test('chain formatters', () => {
expectTypeOf<Result>().toMatchTypeOf<{
chainId?: typeof celo.id | typeof mainnet.id | undefined
feeCurrency?: `0x${string}` | undefined
gatewayFee?: bigint | undefined
gatewayFeeRecipient?: `0x${string}` | undefined
}>()
deployContract(config, {
abi: abi.bayc,
bytecode: bytecode.bayc,
args: ['Bored Ape Wagmi Club', 'BAYC', 69420n, 0n],
feeCurrency: '0x',
gatewayFee: 100n,
gatewayFeeRecipient: '0x',
})

type Result2 = DeployContractParameters<
Expand All @@ -47,17 +43,13 @@ test('chain formatters', () => {
>
expectTypeOf<Result2>().toMatchTypeOf<{
feeCurrency?: `0x${string}` | undefined
gatewayFee?: bigint | undefined
gatewayFeeRecipient?: `0x${string}` | undefined
}>()
deployContract(config, {
chainId: celo.id,
abi: abi.bayc,
bytecode: bytecode.bayc,
args: ['Bored Ape Wagmi Club', 'BAYC', 69420n, 0n],
feeCurrency: '0x',
gatewayFee: 100n,
gatewayFeeRecipient: '0x',
})

type Result3 = DeployContractParameters<
Expand All @@ -67,8 +59,6 @@ test('chain formatters', () => {
>
expectTypeOf<Result3>().not.toMatchTypeOf<{
feeCurrency?: `0x${string}` | undefined
gatewayFee?: bigint | undefined
gatewayFeeRecipient?: `0x${string}` | undefined
}>()
deployContract(config, {
chainId: mainnet.id,
Expand All @@ -77,7 +67,5 @@ test('chain formatters', () => {
args: ['Bored Ape Wagmi Club', 'BAYC', 69420n, 0n],
// @ts-expect-error
feeCurrency: '0x',
gatewayFee: 100n,
gatewayFeeRecipient: '0x',
})
})

0 comments on commit 54e352b

Please sign in to comment.