1. 首页
  2. 数据库
  3. 其它
  4. 【bug解决】TypeError: Data location must be “memory” for parameter in function but n

【bug解决】TypeError: Data location must be “memory” for parameter in function but n

上传者: 2021-02-01 10:41:32上传 PDF文件 114.04KB 热度 15次
问题回顾:在编写完智能合约之后,通过命令行的形式编译智能合约时出现的问题。 1. 具体合约代码(错误写法): pragma solidity >=0.4.21 <0.7.0; contract Simple { string name; uint age; //定义事件 event Instructor(string name,uint age); function set(string _name, uint _age) public { name=_name; age=_age; //触发事件 emit Instructor(name,age); }
下载地址
用户评论