问题描述
contract Foo {
struct Post() {
....
}
mapping (uint256 => Post) private posts;
mapping (uint256 => address) private owners;
}
post_matchings = {}
@hug.post('match/post_id/')
def match_file(file_id,post_id):
1. raise error,if caller of this endpoint is not owner of the post.
2. Do something.
我怎样才能做到这一点?通过使用签名?
感谢您的帮助。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)