Skip to content

Commit

Permalink
Address reviewer's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Dec 11, 2024
1 parent cca7133 commit 1ae94a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/libxrpl/protocol/STIssue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ STIssue::STIssue(SerialIter& sit, SField const& name) : STBase{name}
// MPT
if (noAccount() == account)
{
uint192 mptID;
MPTID mptID;
std::uint32_t sequence = sit.get32();
static_assert(
Expand Down Expand Up @@ -108,9 +107,6 @@ STIssue::add(Serializer& s) const
{
if (holds<Issue>())
{
s.addBitString(asset_.get<Issue>().currency);
if (!isXRP(asset_.get<Issue>().currency))
s.addBitString(asset_.get<Issue>().account);
auto const& issue = asset_.get<Issue>();
s.addBitString(issue.currency);
if (!isXRP(issue.currency))
Expand All @@ -123,6 +119,7 @@ STIssue::add(Serializer& s) const
s.addBitString(noAccount());
std::uint32_t sequence;
memcpy(&sequence, issue.getMptID().data(), sizeof(sequence));
s.add32(sequence);
}
}

Expand Down

0 comments on commit 1ae94a8

Please sign in to comment.