api_version related changes

This commit is contained in:
EntireTwix 2022-11-28 17:14:41 -08:00
parent 244ca2561c
commit cf4ba5ccfa
2 changed files with 4 additions and 0 deletions

View file

@ -98,6 +98,7 @@ BankResponse Bank::GetLogs(const std::string &name) noexcept
return res;
}
}
#if API_VERSION >= 2
BankResponse Bank::GetLogsV2(const std::string &name) noexcept
{
BankResponse res;
@ -111,6 +112,7 @@ BankResponse Bank::GetLogsV2(const std::string &name) noexcept
}
}
#endif
#endif
BankResponse Bank::SendFunds(const std::string &a_name, const std::string &b_name, uint32_t amount) noexcept
{
if (!amount)

View file

@ -40,6 +40,7 @@ void api::GetLogs(req_args)
callback(resp);
#endif
}
#if API_VERSION >= 2
void api::GetLogsV2(req_args)
{
#if MAX_LOG_SIZE > 0
@ -51,6 +52,7 @@ void api::GetLogsV2(req_args)
callback(resp);
#endif
}
#endif
void api::SendFunds(req_args)
{
SIMD_JSON_GEN;