Skip to content

Commit

Permalink
Fix linux MPT unit-test (clawback)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Jul 22, 2024
1 parent 5e9f164 commit f7c4cfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/xrpl/protocol/STMPTAmount.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class STMPTAmount final : public MPTAmount,
public:
static constexpr std::uint64_t cMPToken = 0x2000000000000000ull;

STMPTAmount() = default;
STMPTAmount(std::uint64_t value, SerialIter& sit, SField const& name);
STMPTAmount(
SField const& name,
MPTIssue const& issue,
std::int64_t value = 0);
STMPTAmount(MPTIssue const& issue, std::uint64_t value);
STMPTAmount(MPTIssue const& issue, std::int64_t value = 0);
explicit STMPTAmount(value_type value = 0);

SerializedTypeID
getSType() const override;
Expand Down
4 changes: 4 additions & 0 deletions src/libxrpl/protocol/STMPTAmount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ STMPTAmount::STMPTAmount(MPTIssue const& issue, std::uint64_t value)
value_ = static_cast<std::int64_t>(value);
}

STMPTAmount::STMPTAmount(value_type value) : MPTAmount(value)
{
}

SerializedTypeID
STMPTAmount::getSType() const
{
Expand Down

0 comments on commit f7c4cfc

Please sign in to comment.