ckb-cli icon indicating copy to clipboard operation
ckb-cli copied to clipboard

error: No such file or directory (os error 2)

Open 15168316096 opened this issue 3 years ago • 2 comments

I have a problem here:

env:MacOS ARM64 version:ckb-cli 1.4.0 api url:https://testnet.ckbapp.dev/

Case: How to reproduce: 1. build and generate ckb-cli tool 2. export an env 3. execute the prepared command according to the wiki 4. run the command to generate a transaction for deploying the contract 5. error:No such file or directory (os error 2)

ScreenShot: 1. run the command image

15168316096 avatar Jan 17 '23 10:01 15168316096

Temporary solution: 1. use this project to complete the generate deployment contract transaction, git clone [email protected]:mohanson/ckb-playground.git && cd contract_deploy/ 2. re-apply for a ckb account and ckb funds and then you need to delete the original json in your migration directory 3. run the command:

ckb-cli deploy gen-txs \
  --deployment-config ./deployment.toml \
  --migration-dir ./migrations \
  --from-address ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqdrcaufs8qeu8wvvy0myyedek4vqad9qeq3gc4cf\
  --info-file ./test.json
4. screenshot:

image

15168316096 avatar Jan 18 '23 03:01 15168316096

Sign and Send the deploy transaction:

  1. sign tx:
ckb-cli deploy sign-txs --from-account ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqdrcaufs8qeu8wvvy0myyedek4vqad9qeq3gc4cf \
--add-signatures \
--info-file ./test.json
  1. send tx: ckb-cli deploy apply-txs --info-file ./test.json --migration-dir ./migrations

  2. Find this transaction in the blockchain explore https://pudge.explorer.nervos.org/transaction/0xd7c7da36e9200d3e91f2fdb702e94d2b6f58f67d9fc1fbef417c8f4a39d96d74

15168316096 avatar Jan 18 '23 03:01 15168316096

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 28 '24 01:07 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 03 '24 01:08 github-actions[bot]