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:
parent
2133fa9667
commit
d0de8e3ed3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 '')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue