摘要: Lesson 2: Welcome to Remix! Simple Storage 第一行 Solidity 第一行用注释来写SPDX License Identifier 虽然是可选的,但是有些编译器会出现警告 用来定义license和代码分享规则 Solidity//SPDX-License- 阅读全文
posted @ 2023-03-07 15:22 Furaooooo 阅读(48) 评论(0) 推荐(0)
摘要: 软件环境 安装与格式化solidity代码 vscode 安装 solidity 扩展。注意作者是(Nomic Foundation) 然后ctrl+shift+p 选择user settings(json) 中添加格式化代码的工具 "[solidity]":{ "editor.defaultFor 阅读全文
posted @ 2023-03-07 15:16 Furaooooo 阅读(23) 评论(0) 推荐(0)
摘要: 引用其他合约文件 使用import 引用其他合约文件,并创建一个合约文件类型 //SPDX-License-Identifier:MIT pragma solidity ^0.8.0; import "./SimpleStorage.sol"; contract StorageFactory{ Si 阅读全文
posted @ 2023-03-06 17:49 Furaooooo 阅读(18) 评论(0) 推荐(0)