Skip to content

Commit

Permalink
[FOLD] Changes transactor uses makeInnerObject(); unit test added
Browse files Browse the repository at this point in the history
  • Loading branch information
scottschurr committed Feb 12, 2024
1 parent d1fa0cf commit e43028c
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 176 deletions.
10 changes: 5 additions & 5 deletions src/ripple/app/tx/impl/Change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ Change::applyAmendment()
if (gotMajority)
{
// This amendment now has a majority
// The following call should use STObject::makeInnerObject
newMajorities.push_back(STObject(sfMajority));
newMajorities.push_back(
STObject::makeInnerObject(sfMajority, view().rules()));
auto& entry = newMajorities.back();
entry.emplace_back(STUInt256(sfAmendment, amendment));
entry.emplace_back(STUInt32(
sfCloseTime, view().parentCloseTime().time_since_epoch().count()));
entry[sfAmendment] = amendment;
entry[sfCloseTime] =
view().parentCloseTime().time_since_epoch().count();

if (!ctx_.app.getAmendmentTable().isSupported(amendment))
{
Expand Down
Loading

0 comments on commit e43028c

Please sign in to comment.