Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Fix rent epoch type #3719

Open
wants to merge 1 commit into
base: maintenance/v1.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import {
type as pick,
number,
bigint,
string,
array,
boolean,
Expand Down Expand Up @@ -1930,7 +1931,7 @@
owner: PublicKeyFromString,
lamports: number(),
data: BufferFromRawAccountData,
rentEpoch: number(),
rentEpoch: bigint(),
});

/**
Expand Down Expand Up @@ -3565,7 +3566,7 @@
`failed to get info about account ${publicKey.toBase58()}`,
);
}
return res.result;

Check failure on line 3569 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ value: { data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; } | null; context: { slot: number; }; }' is not assignable to type 'RpcResponseAndContext<AccountInfo<Buffer> | null>'.

Check failure on line 3569 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ value: { data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; } | null; context: { slot: number; }; }' is not assignable to type 'RpcResponseAndContext<AccountInfo<Buffer> | null>'.
}

/**
Expand Down Expand Up @@ -3667,7 +3668,7 @@
`failed to get info for accounts ${keys}`,
);
}
return res.result;

Check failure on line 3671 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ value: ({ data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; } | null)[]; context: { slot: number; }; }' is not assignable to type 'RpcResponseAndContext<(AccountInfo<Buffer> | null)[]>'.

Check failure on line 3671 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ value: ({ data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; } | null)[]; context: { slot: number; }; }' is not assignable to type 'RpcResponseAndContext<(AccountInfo<Buffer> | null)[]>'.
}

/**
Expand Down Expand Up @@ -3770,7 +3771,7 @@
`failed to get accounts owned by program ${programId.toBase58()}`,
);
}
return res.result;

Check failure on line 3774 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ pubkey: PublicKey; account: { data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; }; }[] | { value: { pubkey: PublicKey; account: { ...; }; }[]; context: { ...; }; }' is not assignable to type 'GetProgramAccountsResponse | RpcResponseAndContext<GetProgramAccountsResponse>'.

Check failure on line 3774 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ pubkey: PublicKey; account: { data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; }; }[] | { value: { pubkey: PublicKey; account: { ...; }; }[]; context: { ...; }; }' is not assignable to type 'GetProgramAccountsResponse | RpcResponseAndContext<GetProgramAccountsResponse>'.
}

/**
Expand Down Expand Up @@ -6380,7 +6381,7 @@
AccountNotificationResult,
);
this._handleServerNotification<AccountChangeCallback>(subscription, [
result.value,

Check failure on line 6384 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; }' is not assignable to type 'AccountInfo<Buffer>'.

Check failure on line 6384 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; }' is not assignable to type 'AccountInfo<Buffer>'.
result.context,
]);
}
Expand Down Expand Up @@ -6518,7 +6519,7 @@
this._handleServerNotification<ProgramAccountChangeCallback>(subscription, [
{
accountId: result.value.pubkey,
accountInfo: result.value.account,

Check failure on line 6522 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; }' is not assignable to type 'AccountInfo<Buffer>'.

Check failure on line 6522 in src/connection.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, and Test on Node lts/*

Type '{ data: Buffer; lamports: number; executable: boolean; owner: PublicKey; rentEpoch: bigint; }' is not assignable to type 'AccountInfo<Buffer>'.
},
result.context,
]);
Expand Down
Loading