mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-31 11:54:24 +01:00
Fix crash while migrating ETH payment data (#6539)
This commit is contained in:
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user