From 3fed9a63d48a35b486338bffc1f48608b399f320 Mon Sep 17 00:00:00 2001
From: lukas <mindrunner@users.noreply.github.com>
Date: Thu, 8 Feb 2024 10:48:22 +0100
Subject: [PATCH] fix: make instruction creation public

---
 sdk/src/index.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sdk/src/index.ts b/sdk/src/index.ts
index 19f9da2..d5da80d 100644
--- a/sdk/src/index.ts
+++ b/sdk/src/index.ts
@@ -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
@@ -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,