Skip to content

Commit b60b1ed

Browse files
committed
fix: script
Signed-off-by: Pablo Maldonado <[email protected]>
1 parent 038374a commit b60b1ed

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

scripts/svm/findFillStatusFromFillStatusPda.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This script finds the fillStatus (fillStatus + event) from a provided fillStatusPda.
22
import * as anchor from "@coral-xyz/anchor";
33
import { AnchorProvider, BN, Program } from "@coral-xyz/anchor";
4-
import { address, createSolanaRpc } from "@solana/kit";
4+
import { address, createSolanaRpc, createSolanaRpcSubscriptions } from "@solana/kit";
55
import yargs from "yargs";
66
import { hideBin } from "yargs/helpers";
77
import { SvmSpokeIdl } from "../../src/svm";
@@ -23,10 +23,14 @@ async function findFillStatusFromFillStatusPda(): Promise<void> {
2323
const fillStatusPda = address(resolvedArgv.fillStatusPda);
2424

2525
console.log(`Looking for Fill Event for Fill Status PDA: ${fillStatusPda.toString()}`);
26+
const { rpcEndpoint } = provider.connection;
27+
const rpc = createSolanaRpc(rpcEndpoint);
28+
const rpcSubscriptions = createSolanaRpcSubscriptions(
29+
rpcEndpoint.replace(/^http(s?):\/\//i, (_m, s) => `ws${s ?? ""}://`)
30+
);
2631

27-
const rpc = createSolanaRpc(provider.connection.rpcEndpoint);
2832
const { event, slot } = await readFillEventFromFillStatusPda(
29-
rpc,
33+
{ rpc, rpcSubscriptions },
3034
fillStatusPda,
3135
address(resolvedArgv.programId),
3236
SvmSpokeIdl

test/svm/SvmSpoke.Fill.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ describe("svm_spoke.fill", () => {
652652
assertSE(event.relayExecutionInfo.updatedMessageHash, new Uint8Array(32), `UpdatedMessageHash should be zeroed`);
653653
});
654654

655-
describe.only("codama client and solana kit", () => {
655+
describe("codama client and solana kit", () => {
656656
describe("codama client and solana kit", () => {
657657
it("Fills a V3 relay and verifies balances with codama client and solana kit", async () => {
658658
const rpcClient = createDefaultSolanaClient();

0 commit comments

Comments
 (0)