Skip to content

Commit

Permalink
Vtoken-voting support vbnc. (#1501)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunTiebing authored Nov 17, 2024
1 parent 9dd688f commit 1d3e12c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pallets/vtoken-voting/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ pub mod pallet {
}

fn ensure_vtoken(vtoken: &CurrencyIdOf<T>) -> Result<(), DispatchError> {
ensure!([VKSM, VDOT].contains(vtoken), Error::<T>::VTokenNotSupport);
ensure!([VKSM, VDOT, VBNC].contains(vtoken), Error::<T>::VTokenNotSupport);
Ok(())
}

Expand Down
4 changes: 2 additions & 2 deletions pallets/vtoken-voting/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
#[cfg(test)]
mod common_test;

// #[cfg(test)]
// mod vbnc_test;
#[cfg(test)]
mod vbnc_test;

0 comments on commit 1d3e12c

Please sign in to comment.