From 727cf84080e2cfd16268628c8fd5fe6a09f38910 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 7 Dec 2022 20:26:31 +0900 Subject: [PATCH] Fix wallet object script should have script hex as id --- BTCPayServer/Services/Wallets/WalletReceiveService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/Services/Wallets/WalletReceiveService.cs b/BTCPayServer/Services/Wallets/WalletReceiveService.cs index eb2e6900d..cdc7f29c3 100644 --- a/BTCPayServer/Services/Wallets/WalletReceiveService.cs +++ b/BTCPayServer/Services/Wallets/WalletReceiveService.cs @@ -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;