From d099e469e1f4f6cc6d321fd70d0cca64f7ef1751 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Mon, 21 Feb 2022 14:26:16 +0000 Subject: [PATCH] Rename to `ZcashdUnifiedSpendingKey::GetSaplingKey` for consistency --- src/wallet/wallet.cpp | 2 +- src/zcash/address/unified.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 42130bb93..5aca42d7e 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -554,7 +554,7 @@ std::optional ); // Add the Sapling spending key to the wallet - auto saplingEsk = usk.value().GetSaplingExtendedSpendingKey(); + auto saplingEsk = usk.value().GetSaplingKey(); if (addSaplingKey(saplingEsk) == KeyNotAdded) { // If adding the Sapling key to the wallet failed, abort the process. throw std::runtime_error("CWalletDB::GenerateUnifiedSpendingKeyForAccount(): Unable to add Sapling spending key to the wallet."); diff --git a/src/zcash/address/unified.h b/src/zcash/address/unified.h index d76152239..de5227bc0 100644 --- a/src/zcash/address/unified.h +++ b/src/zcash/address/unified.h @@ -264,7 +264,7 @@ public: return transparentKey; } - const SaplingExtendedSpendingKey& GetSaplingExtendedSpendingKey() const { + const SaplingExtendedSpendingKey& GetSaplingKey() const { return saplingKey; }