作者qw5526259 (繽紛樂)
看板java
標題[問題] 請問這是用java語言寫的程式碼嗎?
時間Wed Aug 1 13:49:58 2018
請問這是用java語言寫的程式碼嗎?
class hello : public eosio::contract {
public:
using contract::contract;
/// @abi action
void hi( account_name from, account_name to) {
require_auth(from);
print( “Hello, from:”, name{from}, “, to:”, name{to});
action(
//這裡{to, active}必須授權給{_self, eosio.code}
permission_level{to, N(active)},
//呼叫 hello.target合約 的’callme’ action
N(hello.target), N(callme),
std::make_tuple(to)
).send();
}
};
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.224.226.16
※ 文章網址: https://www.ptt.cc/bbs/java/M.1533102601.A.B1C.html
→ ssccg: C++ 08/01 14:00
→ qw5526259: 謝謝! 08/01 14:12