Files
clio/tests/unit/rpc/AmendmentsTests.cpp
2026-06-25 11:19:12 +01:00

16 lines
420 B
C++

#include "rpc/Amendments.hpp"
#include <gtest/gtest.h>
#include <xrpl/basics/base_uint.h>
using namespace rpc;
TEST(RPCAmendmentsTest, GenerateAmendmentId)
{
// https://xrpl.org/known-amendments.html#disallowincoming refer to the published id
EXPECT_EQ(
xrpl::uint256("47C3002ABA31628447E8E9A8B315FAA935CE30183F9A9B86845E469CA2CDC3DF"),
Amendments::GetAmendmentId("DisallowIncoming")
);
}