提交 2a7861e6 编写于 作者: W Wang Zhi

add auth require for addrule action

上级 b11d8347
......@@ -21,6 +21,7 @@ void hddlock::init() {
void hddlock::addrule(uint64_t lockruleid, std::vector<uint64_t>& times, std::vector<uint8_t>& percentage, std::string& desc)
{
require_auth(_self);
eosio_assert(times.size() >= 2, "invalidate size of times array");
eosio_assert(times.size() == percentage.size(), "times and percentage in different size.");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册