Skip to content

Commit 8a7843a

Browse files
committed
Remove duplicate createCaveatEnforcerClient and type
1 parent 0b03514 commit 8a7843a

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

packages/delegation-toolkit/src/actions/getCaveatAvailableAmount.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -383,27 +383,3 @@ export const caveatEnforcerActions =
383383
);
384384
},
385385
});
386-
387-
/**
388-
* Type for client extended with caveat enforcer actions.
389-
*/
390-
export type CaveatEnforcerClient = PublicClient &
391-
ReturnType<ReturnType<typeof caveatEnforcerActions>>;
392-
393-
/**
394-
* Create a viem client extended with caveat enforcer actions.
395-
*
396-
* @param params - The parameters object.
397-
* @param params.client - The viem public client.
398-
* @param params.environment - The delegator environment.
399-
* @returns The extended client with caveat enforcer actions.
400-
*/
401-
export function createCaveatEnforcerClient({
402-
client,
403-
environment,
404-
}: {
405-
client: PublicClient;
406-
environment: DeleGatorEnvironment;
407-
}): CaveatEnforcerClient {
408-
return client.extend(caveatEnforcerActions({ environment }));
409-
}

0 commit comments

Comments
 (0)