Skip to content

Commit

Permalink
Change issuanceID_ to issuanceKey_
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jan 10, 2024
1 parent 8bbb22c commit 72b7bbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/test/jtx/impl/mpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ MPTTester::create(const MPTCreate& arg)
Throw<std::runtime_error>("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();
Expand Down Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions src/test/jtx/mpt.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class MPTTester
std::unordered_map<std::string, AccountP> const holders_;
std::optional<std::uint32_t> sequence_;
std::optional<uint192> id_;
std::optional<uint256> issuanceID_;
std::optional<uint256> issuanceKey_;
std::optional<ripple::MPT> mpt_;
bool close_;

Expand Down Expand Up @@ -139,8 +139,8 @@ class MPTTester
uint256 const&
issuanceKey() const
{
assert(issuanceID_);
return *issuanceID_;
assert(issuanceKey_);
return *issuanceKey_;
}

uint192 const&
Expand Down Expand Up @@ -178,7 +178,7 @@ class MPTTester
{
sequence_.reset();
id_.reset();
issuanceID_.reset();
issuanceKey_.reset();
mpt_.reset();
}
}
Expand Down

0 comments on commit 72b7bbc

Please sign in to comment.