Files
rippled/include/xrpl/protocol/PayChan.h
Ayaz Salikhov 5f638f5553 chore: Set ColumnLimit to 120 in clang-format (#6288)
This change updates the ColumnLimit from 80 to 120, and applies clang-format to reformat the code.
2026-01-28 18:09:50 +00:00

22 lines
488 B
C++

#ifndef XRPL_PROTOCOL_PAYCHAN_H_INCLUDED
#define XRPL_PROTOCOL_PAYCHAN_H_INCLUDED
#include <xrpl/basics/base_uint.h>
#include <xrpl/protocol/HashPrefix.h>
#include <xrpl/protocol/Serializer.h>
#include <xrpl/protocol/XRPAmount.h>
namespace xrpl {
inline void
serializePayChanAuthorization(Serializer& msg, uint256 const& key, XRPAmount const& amt)
{
msg.add32(HashPrefix::paymentChannelClaim);
msg.addBitString(key);
msg.add64(amt.drops());
}
} // namespace xrpl
#endif