作者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://webptt.com/cn.aspx?n=bbs/java/M.1533102601.A.B1C.html
1F:→ ssccg: C++ 08/01 14:00
2F:→ qw5526259: 谢谢! 08/01 14:12