摘要: const { ethers, upgrades } = require("hardhat") const fs = require("fs") const path = require("path") module.exports = async function ({ getNamedAccou 阅读全文
posted @ 2025-08-26 23:52 Lucas_coming 阅读(5) 评论(0) 推荐(0)
摘要: const { deployments, upgrades, ethers } = require("hardhat"); const fs = require("fs"); const path = require("path"); module.exports = async ({ getNam 阅读全文
posted @ 2025-08-26 23:50 Lucas_coming 阅读(8) 评论(0) 推荐(0)
摘要: // SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity ^0.8; import "./NftAuction.sol"; contract NftAuctionV2 is NftAuction { function tes 阅读全文
posted @ 2025-08-26 23:48 Lucas_coming 阅读(8) 评论(0) 推荐(0)
摘要: // SPDX-License-Identifier: MIT pragma solidity ^0.8; import "./NftAuction.sol"; contract NftAuctionFactory { address[] public auctions; mapping (uint 阅读全文
posted @ 2025-08-26 23:47 Lucas_coming 阅读(5) 评论(0) 推荐(0)
摘要: // SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity ^0.8; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; i 阅读全文
posted @ 2025-08-26 23:46 Lucas_coming 阅读(10) 评论(0) 推荐(0)
摘要: Cursor 中,复制当前行到下一行的快捷键是: Windows/Linux: Shift + Alt + ↓ 或 Ctrl + Shift + Alt + ↓ Mac: Shift + Option + ↓ 或 Cmd + Shift + Option + ↓ 阅读全文
posted @ 2025-08-23 21:21 Lucas_coming 阅读(39) 评论(0) 推荐(0)
摘要: 删除文件夹及其所有内容 rm -r /path/to/directory 删除文件夹下的所有文件(保留目录) rm folder_name/* 阅读全文
posted @ 2025-08-23 16:21 Lucas_coming 阅读(6) 评论(0) 推荐(0)
摘要: 一 如果调整cursor的字体大小 整体缩放 二 如何更换cursor背景(改成vscode一样) 设置\General\Editor Settings\Workbench 阅读全文
posted @ 2025-08-23 16:10 Lucas_coming 阅读(6) 评论(0) 推荐(0)
摘要: 实现简单的 ERC20 代币合约 现在我将创建一个完整的 ERC20 代币合约项目。首先创建合约文件: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title MyToken * @dev 一个简单的 ERC20 代币 阅读全文
posted @ 2025-08-17 09:36 Lucas_coming 阅读(28) 评论(0) 推荐(0)
摘要: https://github.com/AmazingAng/WTF-Solidity/tree/main/04_Return 阅读全文
posted @ 2025-08-16 23:04 Lucas_coming 阅读(11) 评论(0) 推荐(0)