Skip to content

Commit ad2ca51

Browse files
improve: use slot
Signed-off-by: james-a-morris <[email protected]>
1 parent f20b7bc commit ad2ca51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/arch/svm/eventsClient.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ export class SvmCpiEventsClient {
9898
* Queries events for the provided derived address at instantiation filtered by event name.
9999
*
100100
* @param eventName - The name of the event to filter by.
101-
* @param fromBlock - Optional starting block.
102-
* @param toBlock - Optional ending block.
101+
* @param fromSlot - Optional starting slot.
102+
* @param toSlot - Optional ending slot.
103103
* @param options - Options for fetching signatures.
104104
* @returns A promise that resolves to an array of events matching the eventName.
105105
*/
106106
public async queryDerivedAddressEvents(
107107
eventName: string,
108-
fromBlock?: bigint,
109-
toBlock?: bigint,
108+
fromSlot?: bigint,
109+
toSlot?: bigint,
110110
options: GetSignaturesForAddressConfig = { limit: 1000, commitment: "confirmed" }
111111
): Promise<EventWithData[]> {
112-
const events = await this.queryAllEvents(fromBlock, toBlock, options, true);
112+
const events = await this.queryAllEvents(fromSlot, toSlot, options, true);
113113
return events.filter((event) => event.name === eventName) as EventWithData[];
114114
}
115115

0 commit comments

Comments
 (0)