Address PR comments

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-09-18 16:13:42 +01:00
parent 73086872f0
commit 628c3c59aa

View File

@@ -312,9 +312,9 @@ MPTTester::forObject(
{
if (!id_)
Throw<std::runtime_error>("MPT has not been created");
auto const key = holder_ ? keylet::mptoken(*id_, holder_->id()).untyped()
: keylet::mptIssuance(*id_).untyped();
if (auto const sle = env_.le(key))
auto const key = holder_ ? keylet::mptoken(*id_, holder_->id())
: keylet::mptIssuance(*id_);
if (auto const sle = env_.le(key.untyped()))
return cb(sle);
return false;
}