Hi. What am I doing wrong?
- I compile this contract without changes: GitHub - scrtlabs/snip20-reference-impl: This is a reference implementation of the SNIP-20 standard.
- Compilation:
cd /home/user/snip20-reference-impl-master
docker run --rm -v "$(pwd)":/contract \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
enigmampc/secret-contract-optimizer:1.0.5
- I upload contract.wasm.gz to the test network:
secretcli tx compute store /home/user/snip20-reference-impl-master/contract.wasm.gz --from Promelec --gas 6000000 --gas-prices=1.0uscrt
- Stored contract: https://secretnodes.com/pulsar/transactions/A108DA7BF609EAE92F285DA7C0CF2CE6F63EDFB29BBDBBFF414F0ADE2287A9CA
- I initiate the contract:
secretcli tx compute instantiate 12680 '{"name":"secret-secret","symbol":"sSCRT","decimals":6,"prng_seed":"c2VjcmV0","config":{"public_total_supply":true,"enable_deposit":false,"enable_redeem":false,"enable_mint":true,"enable_burn":true}}' --label mycustomtoken1234567 --from Promelec -- gas 6000000
- Constantly the same error during different initialization attempts:
"raw_log":
"failed to execute message; message index: 0: encrypted: 983wGiMQWjxVzFgNFQY4rNneTTls8kdOgXFnxWyYglqQbBOTyri8HAZadnvX04/QQdObazQeEa44l6jik2E+jmgewATg0ri8e879E6W/3Z1TDYl81Ts5oqr1d+I=: instantiate contract failed"
Who managed to initialize this contract after compiling and uploading to the test network, please write a step-by-step algorithm of actions with commands that have values filled in.