File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,18 @@ export class SvmCpiEventsClient {
98
98
* Queries events for the provided derived address at instantiation filtered by event name.
99
99
*
100
100
* @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 .
103
103
* @param options - Options for fetching signatures.
104
104
* @returns A promise that resolves to an array of events matching the eventName.
105
105
*/
106
106
public async queryDerivedAddressEvents (
107
107
eventName : string ,
108
- fromBlock ?: bigint ,
109
- toBlock ?: bigint ,
108
+ fromSlot ?: bigint ,
109
+ toSlot ?: bigint ,
110
110
options : GetSignaturesForAddressConfig = { limit : 1000 , commitment : "confirmed" }
111
111
) : Promise < EventWithData [ ] > {
112
- const events = await this . queryAllEvents ( fromBlock , toBlock , options , true ) ;
112
+ const events = await this . queryAllEvents ( fromSlot , toSlot , options , true ) ;
113
113
return events . filter ( ( event ) => event . name === eventName ) as EventWithData [ ] ;
114
114
}
115
115
You can’t perform that action at this time.
0 commit comments