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;