EOS 合约使用 current_time_point (eosio.cdt v1.6)

2019-12-26 17:50:37
From eosio.cdt v1.6 onwards
You have to #include <eosio/system.hpp> and then you can use:

eosio::current_time_point
eosio::current_block_time
to cast from time_point to uint32_t u can use like:
eosio::current_time_point().sec_since_epoch();

参考

https://github.com/EOSIO/eosio.cdt/issues/470

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »