freenet-core: freenet local ; command is absouletly broken

I can push the contract with fdev publish but when I want to reach I have:

failed to get contract XXX, reason: Missing contract and/or parameters

I also got:

storing private key file: `identity-manager-key.private.pem`
storing private key file: `identity-manager-key.public.pem`
storing parameters file: `identity-manager-params`
cd /PATH/freenet-core/modules/antiflood-tokens/contracts/token-allocation-record
fdev build
Compiling contract with rust
error: failed to parse lock file at: /PATH/freenet-core/modules/antiflood-tokens/Cargo.lock

Caused by:
  package `freenet-stdlib` is specified twice in the lockfile
Error: exit with status: exit status: 101
make: *** [Makefile:79: build-token-allocation-contract] Error 1

not sure if linked. Might be an issue on my side. I had already published and visited 2 sites I created before I recompiled freenet and got this issue.

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 25 (19 by maintainers)

Most upvoted comments

@gogo2464 Apparently, the publish never manages to save the contract due to an issue in the perform_contract_put method. By fixing this issue, I have been able to successfully launch the application. image Now I am verifying that there are no more issues I will upload a fix.

also in order to ensure that you tested right you have to do:

cargo clean
rm -Rf "${CARGO_TARGET_DIR}"
rm -rf ~/.local/share/freenet

seems to work with the microblogging contract for me. let me try personnal apps!

I am now absolutely 100% sure that the commit https://github.com/freenet/freenet-core/commit/6ef60489e3bd5916f609e8a2b82fc308faca8dbf is responsible of the breaking change!!

the commit just older than this one is running contrary to it