mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 18:26:51 +00:00
refactor: Use isFlag where possible instead of bitwise math (#7278)
This commit is contained in:
@@ -58,7 +58,7 @@ reserve(jtx::Env& env, std::uint32_t count)
|
||||
static bool
|
||||
hasDepositAuth(jtx::Env const& env, jtx::Account const& acct)
|
||||
{
|
||||
return ((*env.le(acct))[sfFlags] & lsfDepositAuth) == lsfDepositAuth;
|
||||
return env.le(acct)->isFlag(lsfDepositAuth);
|
||||
}
|
||||
|
||||
struct DepositAuth_test : public beast::unit_test::Suite
|
||||
|
||||
Reference in New Issue
Block a user