Skip to content

Commit

Permalink
Capitalize types
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Aug 30, 2024
1 parent bef3083 commit 3743890
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/actions/hasRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ type Args = {
address: Address;
};
type UpgradeExecutorABI = typeof upgradeExecutor.abi;
export type hasRoleParameters<Curried extends boolean = false> = ActionParameters<
export type HasRoleParameters<Curried extends boolean = false> = ActionParameters<
Args,
'upgradeExecutor',
Curried
>;

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

export async function hasRole<TChain extends Chain | undefined>(
client: PublicClient<Transport, TChain>,
args: hasRoleParameters,
): Promise<hasRoleReturnType> {
args: HasRoleParameters,
): Promise<HasRoleReturnType> {
return client.readContract({
abi: upgradeExecutor.abi,
functionName: 'hasRole',
Expand Down

0 comments on commit 3743890

Please sign in to comment.