Skip to content

Commit 61a233d

Browse files
committed
fix: use seed properly and update docker image
1 parent eb23897 commit 61a233d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN curl -sSL https://install.python-poetry.org | python
3131
ENV PATH="$POETRY_HOME/bin:$PATH"
3232

3333
# Install Solana CLI
34-
RUN sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
34+
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
3535
ENV PATH=$PATH:/root/.local/share/solana/install/active_release/bin
3636

3737

@@ -80,7 +80,7 @@ ARG APP_PATH
8080

8181
# Install Solana CLI, we redo this step because this Docker target
8282
# starts from scratch without the earlier Solana installation
83-
RUN sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
83+
RUN sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install"
8484
ENV PATH=$PATH:/root/.local/share/solana/install/active_release/bin
8585

8686
ENV \

program_admin/publisher_program_instructions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ def create_buffer_account(
7373
space: int,
7474
lamports: int,
7575
) -> Tuple[PublicKey, TransactionInstruction]:
76-
77-
seed = str(publisher_pubkey)
76+
# The seed should be str but later is used in rust as
77+
# &str and therefore we use latin1 encoding to map byte
78+
# i to char i
79+
seed = bytes(publisher_pubkey).decode("latin-1")
7880
new_account_pubkey = PublicKey.create_with_seed(
7981
base_pubkey,
8082
seed,

0 commit comments

Comments
 (0)