Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/unreleased/bug-fixes/3700-fix-error-mishandling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Now we propagate the error coming from
`is_proposal_accepted` instead of falling back on a default.
([\#3700](https://github.com/anoma/namada/pull/3700))
4 changes: 1 addition & 3 deletions crates/governance/src/vp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ where
if is_proposal_accepted(
&self.ctx.pre(),
tx_data.tx.data(tx_data.cmt).unwrap_or_default().as_ref(),
)
.unwrap_or_default()
{
)? {
return Ok(());
}

Expand Down
4 changes: 1 addition & 3 deletions crates/governance/src/vp/pgf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ where
.data(batched_tx.cmt)
.unwrap_or_default()
.as_ref(),
)
.unwrap_or_default()
{
)? {
return Ok(());
}

Expand Down
4 changes: 1 addition & 3 deletions crates/ibc/src/vp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ where
.data(batched_tx.cmt)
.unwrap_or_default()
.as_ref(),
)
.unwrap_or_default()
{
)? {
return Ok(());
}

Expand Down
4 changes: 1 addition & 3 deletions crates/trans_token/src/vp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ where
if Gov::is_proposal_accepted(
&self.ctx.pre(),
tx_data.tx.data(tx_data.cmt).unwrap_or_default().as_ref(),
)
.unwrap_or_default()
{
)? {
return Ok(());
}

Expand Down