Skip to content

Commit

Permalink
fix: handling error
Browse files Browse the repository at this point in the history
  • Loading branch information
clostao authored and deblanco committed Nov 15, 2023
1 parent f29c9ac commit a4279f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/sponsored-transactions/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ pub mod pallet {
amount: U256,
) -> Result<(), ()> {
if conversion_rate.1 == U256::zero() {
return Err(Error::<T>::InvalidConversionRate);
return Err(());
}

let actual_amount = amount
Expand Down

0 comments on commit a4279f5

Please sign in to comment.