diff --git a/include/xrpl/protocol_autogen/ledger_entries/Sponsorship.h b/include/xrpl/protocol_autogen/ledger_entries/Sponsorship.h index 81b7538012..96b46a6aab 100644 --- a/include/xrpl/protocol_autogen/ledger_entries/Sponsorship.h +++ b/include/xrpl/protocol_autogen/ledger_entries/Sponsorship.h @@ -33,7 +33,7 @@ public: * @brief Construct a Sponsorship ledger entry wrapper from an existing SLE object. * @throws std::runtime_error if the ledger entry type doesn't match. */ - explicit Sponsorship(std::shared_ptr sle) + explicit Sponsorship(SLE::const_pointer sle) : LedgerEntryBase(std::move(sle)) { // Verify ledger entry type @@ -219,7 +219,7 @@ public: * @param sle The existing ledger entry to copy from. * @throws std::runtime_error if the ledger entry type doesn't match. */ - SponsorshipBuilder(std::shared_ptr sle) + SponsorshipBuilder(SLE::const_pointer sle) { if (sle->at(sfLedgerEntryType) != ltSPONSORSHIP) {