blockchain - 在 remix Ide 中,这个通知是什么意思? "You have no

You have not set a script to run. Set it with @custom:dev-run-script NatSpec tag

The notification message

我在Remix IDE中写了一个简单的Hello World程序。

最佳答案

这是一个简单的修复 - 只需在宣布契约(Contract)之前添加这些行即可。

  /**
   * @title ContractName
   * @dev ContractDescription
   * @custom:dev-run-script file_path
   */
  contract ContractName {}

从 here 了解更多信息

关于blockchain - 在 remix Ide 中,这个通知是什么意思? "You have not set a script to run. Set it with @custom:dev-run-script NatSpec tag",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74492453/

相关文章:

javascript - 是的,当 .required() 为 false 时,会继续在同一个属性上

python - 通用迭代器注释 Python

python - Pandas dataframe,连续查找所选列中的最大值,并根据该值查找另一列的

laravel - 生产模式编译报错 "is not a function"Vue Laravel

python - ModuleNotFoundError 即使模块被识别

macos - 在 Mac m2 Monterey 上安装 home-brew 时出现问题

swift - 如何为等待函数调用添加超时

typescript - 如何在保持默认行为的同时扩展 tsconfig 中的类型

ruby-on-rails - 无法使用带 Rails 的 PostgreSql 创建数据库

javascript - 升级到 React 18 后检测到额外的点击。为什么?