Windows launcher: brace the variables before a colon in the payout-address string (PowerShell parse error)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-04 09:09:57 +00:00
parent 2133fa9667
commit d0de8e3ed3

View file

@ -94,7 +94,7 @@ $vendors = @{} # $vendors[name] = @{ name; card; exe; instances; rebuilds; bui
function Get-EvmAddress([string]$vendorName) {
if ($payoutEvm) { return $payoutEvm.Trim().ToLower() }
$sha = [System.Security.Cryptography.SHA256]::Create()
$bytes = $sha.ComputeHash([Text.Encoding]::UTF8.GetBytes("igneum-evm-payout-v0:$machine:$vendorName"))
$bytes = $sha.ComputeHash([Text.Encoding]::UTF8.GetBytes("igneum-evm-payout-v0:${machine}:${vendorName}"))
$sha.Dispose()
return '0x' + (($bytes[0..19] | ForEach-Object { $_.ToString('x2') }) -join '')
}