I am trying to deploy the token_registry.aleo program in amareleo and/or in testnet (tried both) and upon compilation it is complaining that several identifiers in the source code of token_registry.aleo (latest from the GitHub). It looks like a new version restricts the identifiers shorter than before.
In addition, if I look at the main.aleo (compiled leo->aleo) it looks good despite the complaints below, but I cannot deploy it using leo deploy.
Please help.
– Jordan
Details:
I am using the following: Version leo 2.4.1
The commit id of the token_registry:
% git submodule status
8bcc805da1399bd35c713155edeceee0096a7d31 submodules/aleo-standard-programs (heads/main)
Here is my command line log:
token_registry % leo build --network testnet --endpoint “https://api.explorer.provable.com/v1”
Error [EPAR0370044]: Identifier finalize_update_token_management is too long (32 bytes; maximum is 31)
→ /Users/jordan/Experiments/zk-junkyard/submodules/aleo-standard-programs/token_registry/src/main.leo:125:18
|
125 | async function finalize_update_token_management(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error [EPAR0370044]: Identifier finalize_transfer_public_as_signer is too long (34 bytes; maximum is 31)
→ /Users/jordan/Experiments/zk-junkyard/submodules/aleo-standard-programs/token_registry/src/main.leo:679:18
|
679 | async function finalize_transfer_public_as_signer(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error [EPAR0370044]: Identifier finalize_transfer_public_to_private is too long (35 bytes; maximum is 31)
→ /Users/jordan/Experiments/zk-junkyard/submodules/aleo-standard-programs/token_registry/src/main.leo:882:18
|
882 | async function finalize_transfer_public_to_private(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error [EPAR0370044]: Identifier finalize_transfer_from_public_to_private is too long (40 bytes; maximum is 31)
→ /Users/jordan/Experiments/zk-junkyard/submodules/aleo-standard-programs/token_registry/src/main.leo:940:18
|
940 | async function finalize_transfer_from_public_to_private(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error [EPAR0370044]: Identifier finalize_transfer_private_to_public is too long (35 bytes; maximum is 31)
→ /Users/jordan/Experiments/zk-junkyard/submodules/aleo-standard-programs/token_registry/src/main.leo:1035:18
|
1035 | async function finalize_transfer_private_to_public(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^