Skip to content

Commit

Permalink
Revisits fee error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed May 5, 2023
1 parent 7bab0db commit 382c7fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/src/lib/node/ledger/shell/process_proposal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ mod test_process_proposal {
);
assert_eq!(
&response[0].result.info,
"Transparent balance of wrapper's signer was insufficient to pay fee. All the available transparent funds have been moved to the block proposer",
"Transparent balance of wrapper's signer was insufficient to pay fee",
);
}
}
Expand Down Expand Up @@ -920,7 +920,7 @@ mod test_process_proposal {
);
assert_eq!(
&response[0].result.info,
"Transparent balance of wrapper's signer was insufficient to pay fee. All the available transparent funds have been moved to the block proposer",
"Transparent balance of wrapper's signer was insufficient to pay fee",
);
}
}
Expand Down
6 changes: 2 additions & 4 deletions shared/src/ledger/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ where
)
.map_err(|e| e.to_string())?;

return Err("Transparent balance of wrapper's signer was insufficient to pay fee. All the available transparent funds have been moved to the block proposer".to_string());
return Err("Transparent balance of wrapper's signer was insufficient to pay fee".to_string());
}
#[cfg(feature = "abcipp")]
return Err("Insufficient transparent balance to pay fees"
Expand All @@ -390,9 +390,7 @@ where
)
.map_err(|e| e.to_string())?;

return Err(
format!("{}. All the available transparent funds have been moved to the block proposer", e
));
return Err(e.to_string());
}

#[cfg(feature = "abcipp")]
Expand Down

0 comments on commit 382c7fd

Please sign in to comment.