Hardhatã触ãå§ãã¦ãããªãã¤ã¾ã¥ããã¨ã©ã¼ã ã£ãã®ã§ã解決çã¨çºçã®æµãã«ã¤ãã¦èªåãªãã«èª¿ã¹ããã¨ãã¾ã¨ãã¦ããã
Hardhatã®æåã«ã¤ãã¦ã¯ã¾ã ã¾ã æµ
å¦ãªã®ã§å
容ã®æ£ããã«ã¤ãã¦ã¯ã注æãã
ã¨ã©ã¼ã®å 容
ã³ã³ãã©ã¯ãããããã¤ããã³ãã³ãå®è¡æã«çºçã
npx hardhat ignition deploy ./ignition/modules/GLDToken.js --network sepolia
å ·ä½çã«çºçããã¨ã©ã¼ã¯ä»¥ä¸ã
Error in plugin hardhat-ignition: IGN405: The next nonce for 0x933d069ded97d130a1ff755d85bea2763f5eccbe should be 23, but is 24. Please make sure not to send transactions from 0x933d069ded97d130a1ff755d85bea2763f5eccbe while running this deployment and try again.
å 容ã¨ãã¦ã¯çºè¡ãããã¨ããtransactionã®nonceãããããããã¨ãããã®ã
解決æ¹æ³
ä¸çªæã£åãæ©ãæ¹æ³
ignition/deployments/chain-xxxx ã®ãã£ã¬ã¯ããªãåé¤ãããxxxxã«ã¯ãããã¤å ã®networkID(or chainID)ã
å¤åããããªæ¹æ³
ignition/deployments/chain-xxxx/journal.jsonl ãã¡ã¤ã«ãåé¤ãããã¯å¥ã®ã¨ããã«ç§»åããã
çºçæé
1. sepoliaãªã©ã®local以å¤ã®ãããã¯ã¼ã¯ã«ãããã¤ããã
1. ãããã¤ä¸ã«CTL+Cã§ãããã¤ãä¸æãï¼ãããã¯ã¨ã©ã¼ãçºççï¼
1. ãããã¤ããmoduleãã¡ã¤ã«ã®moduleåãæ¸ãæããã
1. å度ãããã¤ãã
åå
以åã®ãããã¤ãä¸æãããããhardhatãå
é¨ã§è¨é²ãã¦ããtx nonceã®å¤ã¨å®éã®ãããã¯ãã§ã¼ã³ä¸ã®ã¢ã«ã¦ã³ããæã¤nonceã®å¤ãããã¦ãã¾ããã¨ãåå ã
ãã®ãããhardhatãå
é¨çã«ä¿æãã¦ããnonceã®å¤ãã¯ãªã¢ããã¨è§£æ¶ãããã
ãã®ããã®æ¹æ³ã解決æ¹æ³ã§æ示ãããã®ã
以ä¸ã®å
¬å¼ãã¼ã¸ã«ããéããignitionã§ã¯ãããã¤ã¹ãã¼ã¿ã¹ã管çãã¦ããã解決æ¹æ³ã§ã¯ãã®ãããã¤ã¹ãã¼ã¿ã¹ã管çãã¦ãããã¡ã¤ã«ãåé¤ãã¦ç¶æ
ããªã»ããããããã®æ¹æ³ã
hardhat.org
ãããã¤éä¸ã§CTL+Cã§ä¸æãããã¨ã¯ã»ã¨ãã©ãªãã®ã§ããã®ã¨ã©ã¼ã¯ã¬ã¢ã±ã¼ã¹ã¨æãããã
ä¿®æ£ãç°¡åãªã®ã§ãããããã®ãã¡å¯¾å¿ãããã¯ãã