File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,32 @@ timezone: UTC+8
1515## Notes
1616
1717<!-- Content_START -->
18+ # 2025-08-15
19+
20+ Scaffold-ETH 2 项目搭建流程
21+ 用 create-eth 初始化项目,过程还算顺利。
22+ 本地链用 yarn chain 启动,前端用 yarn start,一切正常。
23+ 合约部署用 yarn deploy,默认是本地网络,后面改成了 Sepolia。
24+ Sepolia 测试网部署
25+ 改了 hardhat.config.ts,把默认网络设成 sepolia。
26+ 用 yarn generate 生成部署地址,拿去 faucet 领了测试 ETH。
27+ 成功部署合约到测试网,验证也搞定了(yarn verify)。
28+ Vercel 前端部署
29+ scaffold.config.ts 里设了目标网络为 Sepolia。
30+ 前端部署到 Vercel,能正常访问,功能也都跑得起来。
31+ 铸造 NFT、转移 NFT 都测试过了,Burner Wallet 和 MetaMask 都能用。
32+ Hexo 博客部署踩坑
33+ hexo d 报错:Deployer not found: git,查了一下是少了插件。
34+ 装了 hexo-deployer-git,问题解决。
35+ 图片 404 是因为路径错了,重新放到 source/img/,然后 hexo clean && hexo g && hexo d 一套流程走完就好了。
36+ Solidity 小问题
37+ string[ ] memory keys 里值是可以重复的,mapping 里会覆盖旧值。
38+ 如果要去重,可以用双层循环 + keccak256 比较,虽然不优雅但能用。
39+ X Layer 空投 & NFT
40+ 参与了 X Layer 的空投活动,memecoin 已到账(需要手动添加合约地址)。
41+ NFT 铸造和转移都跑通了,准备部署到 X Layer 主网试试。
42+ OpenSea 上展示 NFT 的功能还没搞,明天研究一下。
43+
1844# 2025-08-14
1945
2046关卡 1: Fallback
You can’t perform that action at this time.
0 commit comments