Skip to content

Commit

Permalink
fix overwrite memo test
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Aug 29, 2024
1 parent da78ffa commit b9d942f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions crates/relayer/src/chain/namada/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,13 @@ impl NamadaChain {
// Confirm the transaction later
let mut tx_args = tx_args.broadcast_only(true);

let memo = if !self.config().memo_prefix.as_str().is_empty() {
Some(
self.config()
.memo_prefix
.as_str()
.to_string()
.as_bytes()
.to_vec(),
)
let memo = self
.config()
.memo_overwrite
.as_ref()
.unwrap_or(&self.config().memo_prefix);
let memo = if !memo.as_str().is_empty() {
Some(memo.as_str().to_string().as_bytes().to_vec())
} else {
None
};
Expand Down
2 changes: 1 addition & 1 deletion tools/test-framework/src/bootstrap/namada.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn bootstrap_namada_node(
],
&[("NAMADA_NETWORK_CONFIGS_DIR", genesis_path)],
)?;
std::env::set_current_dir(&cur_dir)?;
std::env::set_current_dir(cur_dir)?;

let config_path = format!("{home_path}/setup/validator-0/{chain_id}/config.toml");

Expand Down

0 comments on commit b9d942f

Please sign in to comment.