Skip to content

Commit

Permalink
Enforce upgradeExecutor parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Jul 15, 2024
1 parent 12bbcd7 commit d89f21b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/actions/hasRole.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { Address, Chain, PublicClient, ReadContractReturnType, Transport } from 'viem';
import { upgradeExecutor } from '../contracts';
import { ActionParameters } from '../types/Actions';
import { UpgradeExecutorRole } from '../upgradeExecutorEncodeFunctionData';

type Args = {
type UpgradeExecutorABI = typeof upgradeExecutor.abi;
export type HasRoleParameters = {
upgradeExecutor: Address;
role: UpgradeExecutorRole;
address: Address;
};
type UpgradeExecutorABI = typeof upgradeExecutor.abi;
export type HasRoleParameters<Curried extends boolean = false> = ActionParameters<
Args,
'upgradeExecutor',
Curried
>;

export type HasRoleReturnType = ReadContractReturnType<UpgradeExecutorABI, 'hasRole'>;

Expand Down

0 comments on commit d89f21b

Please sign in to comment.