Fix wallet object script should have script hex as id

This commit is contained in:
nicolas.dorier 2022-12-07 20:26:31 +09:00
parent 80a257e85f
commit 727cf84080
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -76,7 +76,7 @@ namespace BTCPayServer.Services.Wallets
}
var reserve = (await wallet.ReserveAddressAsync(derivationScheme.AccountDerivation));
await _walletRepository.AddWalletTransactionAttachment(walletId, reserve.ScriptPubKey.ToString(), new []{new Attachment("receive")},
await _walletRepository.AddWalletTransactionAttachment(walletId, reserve.ScriptPubKey.ToHex(), new []{new Attachment("receive")},
WalletObjectData.Types.Script);
Set(walletId, reserve);
return reserve;