1.不知道是不是巧合,在运行 forge install OpenZeppelin/openzeppelin-contracts --no-commit
这段命令时
可以先运行三次 proxychains forge install OpenZeppelin/openzeppelin-contracts --no-commit
,然后打开 cat,
然后在运行一次proxychains forge install OpenZeppelin/openzeppelin-contracts --no-commit
就可以了,真的有够无聊的。
离成功越近,离失败越近。。。。
添加了 foundry-devops,可以在 broadcast 目录下创建 run-latest.json
Error: script failed: the path broadcast is not allowed to be accessed for read operations 解决方法: 在 foundry.toml 中添加如下代码: fs_permissions = [ { access = "read", path = "./images/" }, { access = "read", path = "./broadcast" }, ] 小瑕疵:MetaMask 中的 NFT 图片没有加载出来,但是 OpenSea 上可以看到我的 DogieNFT。 离成功又近了一步,呐,离失败又近了一步。
ipfs 可能不是最佳的数据托管位置 原因:如果我是唯一一个已经将此数据保留的 ipfs 节点,而我的节点下线,
下面的两个 SVG 是图像 URI: Happy SVG: data:image/svg+xml;base64, PHN2ZyB2aWV3Qm94PSIwIDAgMjAwIDIwMCIgd2lkdGg9IjQwMCIgIGhlaWdodD0iNDAwIiB4bWxu cz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxjaXJjbGUgY3g9IjEwMCIgY3k9IjEw MCIgZmlsbD0ieWVsbG93IiByPSI3OCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIzIi8+ CiAgPGcgY2xhc3M9ImV5ZXMiPgogICAgPGNpcmNsZSBjeD0iNjEiIGN5PSI4MiIgcj0iMTIiLz4K ICAgIDxjaXJjbGUgY3g9IjEyNyIgY3k9IjgyIiByPSIxMiIvPgogIDwvZz4KICA8cGF0aCBkPSJt MTM2LjgxIDExNi41M2MuNjkgMjYuMTctNjQuMTEgNDItODEuNTItLjczIiBzdHlsZT0iZmlsbDpu b25lOyBzdHJva2U6IGJsYWNrOyBzdHJva2Utd2lkdGg6IDM7Ii8+Cjwvc3ZnPg==
Sad SVG: data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFu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IDk2IDAgNDggNDggMCAxIDAtOTYgMHptMjI0IDExMmMtODUuNSAwLTE1NS42IDY3LjMt MTYwIDE1MS42YTggOCAwIDAgMCA4IDguNGg0OC4xYzQuMiAwIDcuOC0zLjIgOC4xLTcuNCAzLjct NDkuNSA0NS4zLTg4LjYgOTUuOC04OC42czkyIDM5LjEgOTUuOCA4OC42Yy4zIDQuMiAzLjkgNy40 IDguMSA3LjRINjY0YTggOCAwIDAgMCA4LTguNEM2NjcuNiA2MDAuMyA1OTcuNSA1MzMgNTEyIDUz M3ptMTI4LTExMmE0OCA0OCAwIDEgMCA5NiAwIDQ4IDQ4IDAgMSAwLTk2IDB6Ii8+Cjwvc3ZnPgo=
下面是一个元数据对象,是 TokenURI: ipfs://bafybeig37ioir76s7mg5oobetncojcm3c3hxasyd4rvid4jqhy4gkaheg4/?filename=0-PUG.json
VsCode 创建字符串常量时,报错:Expected string end-quote. 解决方案:将字符串合并为一行。 感觉略无聊
心静且细心 好有缘
example.svg: data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRw Oi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTAwIiBoZWlnaHQ9IjUwMCI+DQo8dGV4 dCB4PSIwIiB5PSIxNSIgZmlsbD0iYmxhY2siPkhpISBZb3VyIGJyb3dzZXIgZGVjb2RlZCB0aGlz PC90ZXh0Pg0KPC9zdmc+
forge test --fork-url $SEPOLIA_RPC_URL 测试网测试
将 nft 元数据存储在 IPFS 比存储在链上更便宜。 arweave.org