CosmWasm / cw-plus

Production Quality contracts under open source licenses
Apache License 2.0
505 stars 352 forks source link

MINT function is not working #848

Closed lhtvineettiwari closed 1 year ago

lhtvineettiwari commented 1 year ago

Giving error while executing MINT function in cw20 smart contract (git clone https://github.com/CosmWasm/cw-plus.git)

raw_log: 'failed to execute message; message index: 0: Unauthorized: execute wasm contract failed'

On contract State i am also getting this

 {"name":"stablecoin","symbol":"GBP","decimals":6,"total_supply":"1000000000000","mint":null}

This is my INITD

 INITD='{"decimals":6,"initial_balances":
[{"address":"cosmoszsfnu6dk9n8gneftup9tqgasjm0ysrssr3xty3","amount":"1000000000000"}],
 "name":"stablecoin","symbol":"GBP"}' 

Let me know if i am missing something or doing anything wrong.

ueco-jb commented 1 year ago
"mint":null

->

Unauthorized

Next time try going to cosmwasm discord for an advice.

lhtvineettiwari commented 1 year ago

I tried, but no replies though.