cli icon indicating copy to clipboard operation
cli copied to clipboard

FIX: "Missing placeholders" Error for `MintAndSendTokens` Command

Open d3v3us opened this issue 11 months ago • 7 comments

Running command "ignite s message MintAndSendTokens denom:string amount:int recipient:string --module tokenfactory" gives an error "✘ Missing placeholders:" is there something I missed?

Using command from here https://docs.ignite.com/guide/tokenfactory/tokenfactory#chapter-4-expanding-functionality-with-new-messages

d3v3us avatar Mar 07 '24 19:03 d3v3us

Thanks @deveusss

Are you using the full command from the tutorial? I don't see the --signer flag in your command. Can you please try that and if it does not work, I will flag this to the tutorials author.

ignite scaffold message MintAndSendTokens denom:string amount:int recipient:string --module tokenfactory --signer owner

Also, what version of CLI are you using. Please include the output of

ignite version

mondainai247 avatar Mar 08 '24 17:03 mondainai247

thank you @mondainai247

The same error with signer command

Ignite CLI version: v28.2.0 Ignite CLI build date: 2024-02-06T11:21:56Z Ignite CLI source hash: af25183a2d312aa4d679e65e3d627025b17a7120 Ignite CLI config version: v1 Cosmos SDK version: v0.50.3

d3v3us avatar Mar 08 '24 18:03 d3v3us

Thank you @deveusss, for now, would you mind trying with an earlier version? It can be installed with

curl https://get.ignite.com/[email protected]! | bash

before doing that you can remove your currently installed ignite binary with

sudo rm -r $(which ignite)

I had heard some of the scaffolding placeholders were removed in version 28.2.0 though not sure if this is the reason for the error. If you can please check with a previous version, it would be most appreciated.

mondainai247 avatar Mar 08 '24 18:03 mondainai247

hey @mondainai247 , the same error, any other way I could resolve this issue?

d3v3us avatar Mar 08 '24 19:03 d3v3us

I will ask @toschdev as I believe he wrote the tutorial, though not sure which version of ignite it was created with.

mondainai247 avatar Mar 08 '24 19:03 mondainai247

hey @toschdev, can you help me with this issue?

d3v3us avatar Mar 11 '24 10:03 d3v3us

ignite scaffold chain tokenfactory --no-module

The above command doesn't generate client/cli folder under X.

Tried the whole tutorial of tokenfactory but that file is not generated in Ignite cli version v28.3.0

Client Updates

Navigate to the client in x/tokenfactory/client and make these changes:

Remove TestDeleteDenom() from tx_denom_test.go.
Eliminate CmdDeleteDenom() from tx_denom.go.
In tx.go, delete the line referencing the delete command.

Also the example has not been provide in the previous versions. Please advise how to delete the above if the CLI doesn't even generate the file?

JTG947 avatar Apr 23 '24 21:04 JTG947