P84
truffle migrate --network goerliを実行して、contractをgoerliテストネットワークにデプロイする。
$ truffle migrate --network goerli
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Network up to date.
Network up to date.
koutounoAir:client lowkeyrojo$
client/src/contractsフォルダを削除
rm -r client/src/contracts
truffle compileを実行して、contractを再コンパイルする。
$ truffle compile
Compiling your contracts...
===========================
> Compiling ./contracts/Greeter.sol
> Compiling ./contracts/Migrations.sol
> Compiling openzeppelin-solidity/contracts/access/Ownable.sol
> Compiling openzeppelin-solidity/contracts/utils/Context.sol
> Compilation warnings encountered:
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> project:/contracts/Greeter.sol
> Artifacts written to /greeter/client/src/contracts
> Compiled successfully using:
- solc: 0.8.10+commit.fc410830.Emscripten.clang
truffle migrate --network goerliを再実行、デプロイは上手くいった。