fix: replace computed max u64 constant with literal (#27765)
This commit is contained in:
parent
e48456dbbc
commit
afe1cfe94a
|
@ -32,7 +32,7 @@ export class AddressLookupTableAccount {
|
|||
}
|
||||
|
||||
isActive(): boolean {
|
||||
const U64_MAX = 2n ** 64n - 1n;
|
||||
const U64_MAX = 18446744073709551615n;
|
||||
return this.state.deactivationSlot === U64_MAX;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ function createTestKeys(count: number): Array<PublicKey> {
|
|||
function createTestLookupTable(
|
||||
addresses: Array<PublicKey>,
|
||||
): AddressLookupTableAccount {
|
||||
const U64_MAX = 2n ** 64n - 1n;
|
||||
const U64_MAX = 18446744073709551615n;
|
||||
return new AddressLookupTableAccount({
|
||||
key: PublicKey.unique(),
|
||||
state: {
|
||||
|
|
|
@ -18,7 +18,7 @@ function createTestKeys(count: number): Array<PublicKey> {
|
|||
function createTestLookupTable(
|
||||
addresses: Array<PublicKey>,
|
||||
): AddressLookupTableAccount {
|
||||
const U64_MAX = 2n ** 64n - 1n;
|
||||
const U64_MAX = 18446744073709551615n;
|
||||
return new AddressLookupTableAccount({
|
||||
key: PublicKey.unique(),
|
||||
state: {
|
||||
|
|
|
@ -17,7 +17,7 @@ function createTestKeys(count: number): Array<PublicKey> {
|
|||
function createTestLookupTable(
|
||||
addresses: Array<PublicKey>,
|
||||
): AddressLookupTableAccount {
|
||||
const U64_MAX = 2n ** 64n - 1n;
|
||||
const U64_MAX = 18446744073709551615n;
|
||||
return new AddressLookupTableAccount({
|
||||
key: PublicKey.unique(),
|
||||
state: {
|
||||
|
|
Loading…
Reference in New Issue