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 {
|
isActive(): boolean {
|
||||||
const U64_MAX = 2n ** 64n - 1n;
|
const U64_MAX = 18446744073709551615n;
|
||||||
return this.state.deactivationSlot === U64_MAX;
|
return this.state.deactivationSlot === U64_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ function createTestKeys(count: number): Array<PublicKey> {
|
||||||
function createTestLookupTable(
|
function createTestLookupTable(
|
||||||
addresses: Array<PublicKey>,
|
addresses: Array<PublicKey>,
|
||||||
): AddressLookupTableAccount {
|
): AddressLookupTableAccount {
|
||||||
const U64_MAX = 2n ** 64n - 1n;
|
const U64_MAX = 18446744073709551615n;
|
||||||
return new AddressLookupTableAccount({
|
return new AddressLookupTableAccount({
|
||||||
key: PublicKey.unique(),
|
key: PublicKey.unique(),
|
||||||
state: {
|
state: {
|
||||||
|
|
|
@ -18,7 +18,7 @@ function createTestKeys(count: number): Array<PublicKey> {
|
||||||
function createTestLookupTable(
|
function createTestLookupTable(
|
||||||
addresses: Array<PublicKey>,
|
addresses: Array<PublicKey>,
|
||||||
): AddressLookupTableAccount {
|
): AddressLookupTableAccount {
|
||||||
const U64_MAX = 2n ** 64n - 1n;
|
const U64_MAX = 18446744073709551615n;
|
||||||
return new AddressLookupTableAccount({
|
return new AddressLookupTableAccount({
|
||||||
key: PublicKey.unique(),
|
key: PublicKey.unique(),
|
||||||
state: {
|
state: {
|
||||||
|
|
|
@ -17,7 +17,7 @@ function createTestKeys(count: number): Array<PublicKey> {
|
||||||
function createTestLookupTable(
|
function createTestLookupTable(
|
||||||
addresses: Array<PublicKey>,
|
addresses: Array<PublicKey>,
|
||||||
): AddressLookupTableAccount {
|
): AddressLookupTableAccount {
|
||||||
const U64_MAX = 2n ** 64n - 1n;
|
const U64_MAX = 18446744073709551615n;
|
||||||
return new AddressLookupTableAccount({
|
return new AddressLookupTableAccount({
|
||||||
key: PublicKey.unique(),
|
key: PublicKey.unique(),
|
||||||
state: {
|
state: {
|
||||||
|
|
Loading…
Reference in New Issue