mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
Fix crash while migrating ETH payment data (#6539)
This commit is contained in:
parent
6ae36825d5
commit
07b9eb079d
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue