Skip to content

Commit

Permalink
Merge remote-tracking branch 'namada/tomas/init-network-dup-tokens' i…
Browse files Browse the repository at this point in the history
…nto ray/sdk-wip

* namada/tomas/init-network-dup-tokens:
  changelog: add #1362
  apps/client/utils/init-network: avoid adding tokens to wallet twice
  Fixes env variable names in docs
  • Loading branch information
juped committed May 12, 2023
2 parents d1efb69 + 3654522 commit 59c9c71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Client/utils: Avoid adding token addresses twice in wallets created for new
networks. ([\#1362](https://github.com/anoma/namada/pull/1362))
3 changes: 1 addition & 2 deletions apps/src/lib/client/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,11 +595,10 @@ pub fn init_network(
})
}

config.token.iter_mut().for_each(|(name, config)| {
config.token.iter_mut().for_each(|(_name, config)| {
if config.address.is_none() {
let address = address::gen_established_address("token");
config.address = Some(address.to_string());
wallet.add_address(name.clone(), address);
}
if config.vp.is_none() {
config.vp = Some("vp_token".to_string());
Expand Down
4 changes: 2 additions & 2 deletions documentation/docs/src/testnets/running-a-full-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
```
Optional: If you want more logs, you can instead run
```bash
NAMADA_LOG=debug ANOMA_TM_STDOUT=true namada node ledger run
NAMADA_LOG=debug NAMADA_TM_STDOUT=true namada node ledger run
```
And if you want to save your logs to a file, you can instead run:
```bash
TIMESTAMP=$(date +%s)
ANOMA_LOG=debug NAMADA_TM_STDOUT=true namada node ledger run &> logs-${TIMESTAMP}.txt
NAMADA_LOG=debug NAMADA_TM_STDOUT=true namada node ledger run &> logs-${TIMESTAMP}.txt
tail -f -n 20 logs-${TIMESTAMP}.txt ## (in another shell)
```

0 comments on commit 59c9c71

Please sign in to comment.