Skip to content

Commit

Permalink
Capitalize types
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Jul 15, 2024
1 parent 61c5965 commit 857a41e
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 857a41e

Please sign in to comment.