EOS 更新合約內部轉賬方式變化

新的eos虛擬機移除了eosiolib/currency.hpp

之前的轉賬合約已經無法再更新智能合約

eosio::currency::inline_transfer(from, to, _extended_asset_EOS, "MEMO");      // 已廢棄

 

新的api 

action(permission_level{ _self, N(active) },N(eosio.token), N(transfer),std::make_tuple(from, to, quantity, std::string("MEMO."))).send();

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章