From bf07a606768eef7cd37c1dd0e2c0a35fe3b12f24 Mon Sep 17 00:00:00 2001 From: disco-infinex <168691292+disco-infinex@users.noreply.github.com> Date: Fri, 6 Sep 2024 20:11:46 +1000 Subject: [PATCH] Fixing misnamed field in `PerformanceSample` return type (#3202) * Fixing misnamed field in type PerformanceSample type * Changeset --- .changeset/plenty-eyes-kick.md | 5 +++++ packages/rpc-api/src/getRecentPerformanceSamples.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/plenty-eyes-kick.md diff --git a/.changeset/plenty-eyes-kick.md b/.changeset/plenty-eyes-kick.md new file mode 100644 index 000000000000..97fa9b231cb3 --- /dev/null +++ b/.changeset/plenty-eyes-kick.md @@ -0,0 +1,5 @@ +--- +'@solana/rpc-api': patch +--- + +PerformanceSample return type field numNonVoteTransaction corrected to numNonVoteTransactions diff --git a/packages/rpc-api/src/getRecentPerformanceSamples.ts b/packages/rpc-api/src/getRecentPerformanceSamples.ts index a20d82782c54..b9626e9a92de 100644 --- a/packages/rpc-api/src/getRecentPerformanceSamples.ts +++ b/packages/rpc-api/src/getRecentPerformanceSamples.ts @@ -3,7 +3,7 @@ import type { Slot, U64UnsafeBeyond2Pow53Minus1 } from '@solana/rpc-types'; type PerformanceSample = Readonly<{ /** Number of non-vote transactions in sample. */ - numNonVoteTransaction: U64UnsafeBeyond2Pow53Minus1; + numNonVoteTransactions: U64UnsafeBeyond2Pow53Minus1; /** Number of slots in sample */ numSlots: U64UnsafeBeyond2Pow53Minus1; /** Number of transactions in sample */