Move solana connection init inside functions

This commit is contained in:
2025-07-21 12:48:07 +05:30
parent e57c4b24ad
commit 4e34ea442a
6 changed files with 35 additions and 22 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
# Builds image cerc/laconic-registry-cli:latest
```
* Configure `userKey` and `bondId` in the registry CLI config:
* Configure `userKey` and `bondId` in the [registry CLI config](./config.yml):
```bash
nano config.yml
+5 -3
View File
@@ -11,11 +11,13 @@ echo "Using AUTHORITY: $AUTHORITY"
# Repository URL
REPO_URL="https://git.vdb.to/LaconicNetwork/gor-deploy"
# Get the latest commit hash from the repository
LATEST_HASH=$(git ls-remote $REPO_URL HEAD | awk '{print $1}')
# Get the latest commit hash for a branch
# TODO: Change to main before merging PR
BRANCH_NAME="sk-gor-deploy"
LATEST_HASH=$(git ls-remote $REPO_URL refs/heads/$BRANCH_NAME | awk '{print $1}')
# TODO: Use a release
PACKAGE_VERSION=$(curl -s $REPO_URL/raw/branch/sk-gor-deploy/package.json | jq -r .version)
PACKAGE_VERSION=$(curl -s $REPO_URL/raw/branch/$BRANCH_NAME/package.json | jq -r .version)
# TODO: Update app name
APP_NAME=mtm-deploy