Remix IDE

1.Remix 為一個網頁的智能合約撰寫工具

https://remix.ethereum.org/

2.可以使用 remixd 連結本地 node_modules 到 remix web 上。

3.在合約中使用 console.log

https://remix-ide.readthedocs.io/en/latest/%5C/hardhat_console.html

4. 區塊時間

在 Remix VM 中區塊高度不會自動增加但block.timestamp 秒數會自動增加。

5.驗證合約

下載插件 Etherscan - Contract verification 之後填入 etherscan API key

Constructor Arguments 可以不填寫

https://forum.openzeppelin.com/t/use-plugin-in-the-remix-to-verify-contract/22759

其他資源:

https://medium.com/remix-ide

Last updated