Fix crash while migrating ETH payment data (#6539)

This commit is contained in:
Nicolas Dorier 2025-01-08 19:24:37 +09:00 committed by GitHub
parent 6ae36825d5
commit 07b9eb079d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -126,6 +126,7 @@ namespace BTCPayServer.Data
{ Type: "LN" } or { Type: "LNURL" } => 11,
{ Type: "CHAIN", CryptoCode: var code } when code == "XMR" => 12,
{ Type: "CHAIN" } => 8,
{ Type: "LEGACY" } => 18,
_ => 8
};
}
@ -140,7 +141,7 @@ namespace BTCPayServer.Data
"BTCLike" or "MoneroLike" or "ZcashLike" => $"{cryptoCode}-CHAIN",
"LightningLike" or "LightningNetwork" => $"{cryptoCode}-LN",
"LNURLPAY" => $"{cryptoCode}-LNURL",
"EthereumLike" => $"{cryptoCode}-LEGACY",
_ => throw new NotSupportedException("Unknown payment type " + paymentType)
};
}