Skip to content

Commit

Permalink
nit time crate + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Doordashcon committed Sep 6, 2024
1 parent 53e60a6 commit fd82ec2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
18 changes: 13 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions system-parachains/asset-hubs/asset-hub-polkadot/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,9 @@ pub mod tx_payment {
// The error should not occur since swap was quoted before.
Err((refund, _)) => {
match T::Assets::settle(who, debt, Preservation::Expendable) {
Ok(dust) =>
ensure!(dust.peek().is_zero(), InvalidTransaction::Payment),
Ok(dust) => {
ensure!(dust.peek().is_zero(), InvalidTransaction::Payment)
},
// The error should not occur as the `debt` was just withdrawn
// above.
Err(_) => return Err(InvalidTransaction::Payment.into()),
Expand Down

0 comments on commit fd82ec2

Please sign in to comment.