Skip to content

Commit

Permalink
fix: make instruction creation public
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Feb 8, 2024
1 parent 6f9db77 commit 3fed9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Solstream {
* @param streamName Name of the stream
* @returns
*/
protected initializeStreamIx = async (streamName: string) => {
public initializeStreamIx = async (streamName: string) => {
const streamPDA = getStreamPDA(streamName);

const ix = await this.program.methods
Expand Down Expand Up @@ -138,7 +138,7 @@ export class Solstream {
* @param nonce Nonce for the event. If not given, a random nonce will be generated
* @returns: An object containing the instruction, the event account PDA and the stream account PDA
*/
protected createEventIx = async (
public createEventIx = async (
streamName: string,
eventName: string,
data: Buffer,
Expand Down

0 comments on commit 3fed9a6

Please sign in to comment.