Skip to content

Commit

Permalink
enforce chain
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Sep 27, 2024
1 parent 5eadd44 commit f2e21a5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/actions/getAllChainOwners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type GetAllChainOwnersReturnType = ReadContractReturnType<
'getAllChainOwners'
>;

export async function getAllChainOwners<TChain extends Chain | undefined>(
export async function getAllChainOwners<TChain extends Chain>(
client: PublicClient<Transport, TChain>,
): Promise<GetAllChainOwnersReturnType> {
return client.readContract({
Expand Down
2 changes: 1 addition & 1 deletion src/actions/getInfraFeeAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type GetInfraFeeAccountReturnType = ReadContractReturnType<
'getInfraFeeAccount'
>;

export async function getInfraFeeAccount<TChain extends Chain | undefined>(
export async function getInfraFeeAccount<TChain extends Chain>(
client: PublicClient<Transport, TChain>,
): Promise<GetInfraFeeAccountReturnType> {
return client.readContract({
Expand Down
2 changes: 1 addition & 1 deletion src/actions/getNetworkFeeAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type GetNetworkFeeAccountReturnType = ReadContractReturnType<
'getNetworkFeeAccount'
>;

export async function getNetworkFeeAccount<TChain extends Chain | undefined>(
export async function getNetworkFeeAccount<TChain extends Chain>(
client: PublicClient<Transport, TChain>,
): Promise<GetNetworkFeeAccountReturnType> {
return client.readContract({
Expand Down
2 changes: 1 addition & 1 deletion src/actions/getScheduledUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type GetScheduledUpgradeReturnType = {
scheduledForTimestamp: GetScheduledUpgradeRawReturnType[1];
};

export async function getScheduledUpgrade<TChain extends Chain | undefined>(
export async function getScheduledUpgrade<TChain extends Chain>(
client: PublicClient<Transport, TChain>,
): Promise<GetScheduledUpgradeReturnType> {
const [arbosVersion, scheduledForTimestamp] = await client.readContract({
Expand Down
2 changes: 1 addition & 1 deletion src/actions/isChainOwner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type IsChainOwnerReturnType = ReadContractReturnType<
'isChainOwner'
>;

export async function isChainOwner<TChain extends Chain | undefined>(
export async function isChainOwner<TChain extends Chain>(
client: PublicClient<Transport, TChain>,
args: IsChainOwnerParameters,
): Promise<IsChainOwnerReturnType> {
Expand Down

0 comments on commit f2e21a5

Please sign in to comment.