diff --git a/src/libxrpl/protocol/STIssue.cpp b/src/libxrpl/protocol/STIssue.cpp index 1d7d71b0152..5a2008cb178 100644 --- a/src/libxrpl/protocol/STIssue.cpp +++ b/src/libxrpl/protocol/STIssue.cpp @@ -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( @@ -108,9 +107,6 @@ STIssue::add(Serializer& s) const { if (holds()) { - s.addBitString(asset_.get().currency); - if (!isXRP(asset_.get().currency)) - s.addBitString(asset_.get().account); auto const& issue = asset_.get(); s.addBitString(issue.currency); if (!isXRP(issue.currency)) @@ -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); } }