diff --git a/js-v1/src/rpc.ts b/js-v1/src/rpc.ts index 2301052..2513c67 100644 --- a/js-v1/src/rpc.ts +++ b/js-v1/src/rpc.ts @@ -12,9 +12,9 @@ export async function getStakeActivation( connection: Connection, stakeAddress: PublicKey ): Promise { - const SYSVAR_STAKE_HISTORY_ADDRESS = new PublicKey( - 'SysvarStakeHistory1111111111111111111111111' - ); + const SYSVAR_STAKE_HISTORY_ADDRESS = { + toBase58: () => 'SysvarStakeHistory1111111111111111111111111', + } as unknown as PublicKey; // Prevents a concrete dependency on `PublicKey` const [epochInfo, { stakeAccount, stakeAccountLamports }, stakeHistory] = await Promise.all([ connection.getEpochInfo(),