wallet 0.1.5: write_wallet_config reads the token through the 0.3.13 tree's helpers (TOKEN_FILE no longer exists)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
c89968c443
commit
a085335a4c
1 changed files with 4 additions and 3 deletions
|
|
@ -87,9 +87,10 @@ WALLET_PUBLIC_RPC=''
|
|||
WALLET_ADD_NETWORK_PAGE='https://igneum.network/wallet/add'
|
||||
write_wallet_config() {
|
||||
local out="$1" token="" manifest=""
|
||||
[ -f "$TOKEN_FILE" ] && token="$(tr -d '[:space:]' < "$TOKEN_FILE")"
|
||||
[ -n "$token" ] && manifest="https://dl.igneum.network/dl/$token/igneum-wallet-latest.json"
|
||||
[ -n "$manifest" ] || echo "note: no $TOKEN_FILE; the update check is disabled in this build"
|
||||
# the token as write_packaged_config reads it (6 October 2026: the .next-file helpers of the 0.3.13 tree)
|
||||
token="$(igneum_read_trimmed "$(igneum_secret_file IGNEUM_DL_TOKEN_FILE dl-token)")"
|
||||
[ -n "$token" ] && manifest="${DL_HOST:-https://dl.igneum.network}/dl/$token/igneum-wallet-latest.json"
|
||||
[ -n "$manifest" ] || echo "note: no download token file; the update check is disabled in this build"
|
||||
local override_line=""
|
||||
[ -n "$NODE_OVERRIDE_PARAMS" ] && override_line=" \"node_override_params\": $NODE_OVERRIDE_PARAMS,"
|
||||
cat > "$out" <<JSON
|
||||
|
|
|
|||
Loading…
Reference in a new issue