Here are some common errors and their solutions while following along the Deploy Workshop.
error: failed to run custom build command for `librocksdb-sys v0.11.0+8.1.1
When trying to install snarkOS
on a Windows machine, please follow these instructions
- Install LLVM via the .exe download here https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.0
- Add LLVM to the PATH, verify you can use
clang
in the terminal or powershell - clone SnarkOS repository:
git clone https://github.com/AleoHQ/snarkOS
cd snarkOS
cargo install --no-default-features --path .
Error: Function 'mint' in the program 'token_13579.aleo' expects 1 inputs, but 0 inputs were found.
If you encounter this error, it happens most commonly because you have a syntax error in your input file. Make sure that all inputs are followed by a semi-colon, including objects. Here is an example
[my_leo_function]
receiver: address = aleo1c55rzshzjm6xqdaz3xqsd6fj2ysqkhdl8y6xsn29a48vyvgzj58qrg6pwd;
amount: u32 = 10u32;
input: Object = Object {
owner: aleo1u4fx4m9aflyanm56h5vv45xangr3vvfdq96eqrapa22h60e8ngqsjdt8j5,
balance: 100u32,
_nonce: 1254471947785662395092980351949765066082396412055480960193555787900641209591group
};
📦 Creating deployment transaction for 'token.aleo'...
⚠️ Fee record does not have enough balance to pay the fee
This error is caused when your package name is not unique.
The Aleo Package repository requires globally unique names. Change your package name to something unique and try again after updating the name of the following:
- Package name generated by
leo new <package_name>
- File name of the
<package_name>.in
input file - Progam name within
leo.main
file - Progam name within within
leo.aleo
file - Update
APPNAME
in thedeploy.sh
script to your new package name - Update the
progam_name
field withinpackage.json
file to your new package name