1

I am trying to deploy a hello world program on the blockchain through the solana cli. I tried running cargo build-bpf , after running the program the deploy directory is not downloaded so that I can run solana program deploy ./target/deploy/hello_world.so to deploy the smart contract.

enter image description here

1 Answer 1

2

Make sure you have this section in your Cargo.toml

[lib]
crate-type = ["cdylib", "lib"]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.