mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Set denom_metadata in SDK 0.47 genesis generator
This commit is contained in:
parent
4c8c27cc37
commit
64aaccf417
@ -50,6 +50,27 @@ function inline_jq() {
|
|||||||
(
|
(
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
|
# Set denom_metadata
|
||||||
|
inline_jq "template/.simapp/config/genesis.json" '.app_state.bank.denom_metadata |= [
|
||||||
|
{
|
||||||
|
"description": "The fee token of this test chain",
|
||||||
|
"denom_units": [
|
||||||
|
{
|
||||||
|
"denom": "ucosm",
|
||||||
|
"exponent": 0,
|
||||||
|
"aliases": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"denom": "COSM",
|
||||||
|
"exponent": 6,
|
||||||
|
"aliases": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"base": "ucosm",
|
||||||
|
"display": "COSM"
|
||||||
|
}
|
||||||
|
]'
|
||||||
|
|
||||||
# Sort genesis
|
# Sort genesis
|
||||||
inline_jq "template/.simapp/config/genesis.json" -S
|
inline_jq "template/.simapp/config/genesis.json" -S
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user