Closed2
「SolidityとEthereumによる実践スマートコントラクト開発」の沼8
p73
ganacheにコントラクトをデプロイする際は、truffle migrateコマンドの末尾に、--networkをつける必要がある。まずは、compileでsuccessfullyと表示させる。
p80
次に、—network development を指定したコマンドを叩いてdevelopment ネットワークにコントラクトをデプロイする。出力が表示されれば、Migrationsのデプロイが確認できる
だめ、
$ truffle migrate --network development
Compiling your contracts...
===========================
✔ Fetching solc version list from solc-bin. Attempt #1
> Everything is up to date, there is nothing to compile.
> Something went wrong while attempting to connect to the network at http://127.0.0.1:7545. Check your network configuration.
Could not connect to your Ethereum client with the following parameters:
- host > 127.0.0.1
- port > XXXX
- network_id > *
Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" or "--http" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle-config.js)
Truffle v5.4.16 (core: 5.4.16)
Node v14.18.0
このスクラップは2022/05/28にクローズされました