10 2024 档案

摘要:truffle migrate --network sepolia 报错 Error: There was a timeout while attempting to connect to the network at undefined. Check to see that your provid 阅读全文
posted @ 2024-10-08 20:37 apeNote 阅读(11) 评论(0) 推荐(0) 编辑
摘要:运行 truffle migrate 报错 *** Deployment Failed *** "TestT**" hit an invalid opcode while deploying. Try: * Verifying that your constructor params satisfy 阅读全文
posted @ 2024-10-04 16:36 apeNote 阅读(45) 评论(0) 推荐(0) 编辑
摘要:运行 truffle compile 报错 Error: Truffle is currently using solc 0.8.13, but one or more of your contracts specify "pragma solidity ^0.8.20". 修改 truffle-c 阅读全文
posted @ 2024-10-04 16:25 apeNote 阅读(12) 评论(0) 推荐(0) 编辑
摘要:运行以下 // SPDX-License-Identifier: MIT pragma solidity 0.7.5; import {Counters} from "@openzeppelin/contracts/utils/Counters.sol"; contract MyToken is E 阅读全文
posted @ 2024-10-04 08:55 apeNote 阅读(44) 评论(0) 推荐(0) 编辑
摘要:contract目录下 Storage.sol // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.2 <0.9.0; /** * @title Storage * @dev Store & retrieve value in a va 阅读全文
posted @ 2024-10-02 15:22 apeNote 阅读(9) 评论(0) 推荐(0) 编辑
摘要:打印 ganache环境的账户列表 const localhost = "http://127.0.0.1:7545"; const {Web3} = require("web3"); const web3 = new Web3(new Web3.providers.HttpProvider(loc 阅读全文
posted @ 2024-10-02 10:42 apeNote 阅读(7) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示