Skip to content

Commit

Permalink
fix tests & doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Nov 26, 2024
1 parent 45f8b7b commit 0733fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion substrate/frame/revive/rpc/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async fn revert_call() -> anyhow::Result<()> {
.unwrap_err();

let call_err = unwrap_call_err!(err.source().unwrap());
assert_eq!(call_err.message(), "Execution reverted: revert message");
assert_eq!(call_err.message(), "execution reverted: revert message");
assert_eq!(call_err.code(), 3);
Ok(())
}
Expand Down
7 changes: 5 additions & 2 deletions substrate/frame/revive/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ use sp_runtime::{
};

#[derive(Clone, Eq, PartialEq, Encode, Decode, RuntimeDebug, TypeInfo)]
pub enum DepositLimit<T> {
pub enum DepositLimit<Balance> {
/// Allows bypassing all balance transfer checks.
Unchecked,
Balance(T),

/// Specifies a maximum allowable balance for a deposit.
Balance(Balance),
}

impl<T> DepositLimit<T> {
Expand Down

0 comments on commit 0733fb6

Please sign in to comment.