From 72b7bbc4966944eab8de603eb345c26e896cdbb6 Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Wed, 10 Jan 2024 11:40:09 -0500 Subject: [PATCH] Change issuanceID_ to issuanceKey_ --- src/test/jtx/impl/mpt.cpp | 6 +++--- src/test/jtx/mpt.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/jtx/impl/mpt.cpp b/src/test/jtx/impl/mpt.cpp index 697cfef1fd8..8e811813c6e 100644 --- a/src/test/jtx/impl/mpt.cpp +++ b/src/test/jtx/impl/mpt.cpp @@ -78,7 +78,7 @@ MPTTester::create(const MPTCreate& arg) Throw("MPT can't be reused"); sequence_ = env_.seq(issuer_); id_ = getMptID(issuer_.id(), *sequence_); - issuanceID_ = keylet::mptIssuance(*id_).key; + issuanceKey_ = keylet::mptIssuance(*id_).key; mpt_ = std::make_pair(*sequence_, issuer_.id()); Json::Value jv; jv[sfAccount.jsonName] = issuer_.human(); @@ -162,8 +162,8 @@ MPTTester::forObject( { auto const key = [&]() { if (holder_) - return keylet::mptoken(*issuanceID_, holder_->id()); - return keylet::mptIssuance(*issuanceID_); + return keylet::mptoken(*issuanceKey_, holder_->id()); + return keylet::mptIssuance(*issuanceKey_); }(); if (auto const sle = env_.le(key)) return cb(sle); diff --git a/src/test/jtx/mpt.h b/src/test/jtx/mpt.h index 210bb71e261..ad874eaa9e3 100644 --- a/src/test/jtx/mpt.h +++ b/src/test/jtx/mpt.h @@ -90,7 +90,7 @@ class MPTTester std::unordered_map const holders_; std::optional sequence_; std::optional id_; - std::optional issuanceID_; + std::optional issuanceKey_; std::optional mpt_; bool close_; @@ -139,8 +139,8 @@ class MPTTester uint256 const& issuanceKey() const { - assert(issuanceID_); - return *issuanceID_; + assert(issuanceKey_); + return *issuanceKey_; } uint192 const& @@ -178,7 +178,7 @@ class MPTTester { sequence_.reset(); id_.reset(); - issuanceID_.reset(); + issuanceKey_.reset(); mpt_.reset(); } }