Open Janaka-Steph opened 3 years ago
I encountered the same problem: I used this command --> shitcoin=$(nigiri mint $addressmarket 100 | grep '^asset: ' | cut -d ':' -f 2 | tr -d ' ')
That's because we unmarshal the returning JSON (from chopsticks endpoint) in a golang map[string]interface{}
which namely do not maintain order of keys.
Would be maybe easier to just return the asset hash information in the nigiri mint
command
Example
This is annoying when command is used in bash script.