|
|
@@ -19,15 +19,6 @@ pub enum GetPriceUnsafeError {
|
|
|
PriceFeedNotFound,
|
|
|
}
|
|
|
|
|
|
-pub impl GetPriceUnsafeErrorUnwrapWithFelt252<T> of UnwrapWithFelt252<T, GetPriceUnsafeError> {
|
|
|
- fn unwrap_with_felt252(self: Result<T, GetPriceUnsafeError>) -> T {
|
|
|
- match self {
|
|
|
- Result::Ok(v) => v,
|
|
|
- Result::Err(err) => core::panic_with_felt252(err.into()),
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
impl GetPriceUnsafeErrorIntoFelt252 of Into<GetPriceUnsafeError, felt252> {
|
|
|
fn into(self: GetPriceUnsafeError) -> felt252 {
|
|
|
match self {
|
|
|
@@ -41,15 +32,6 @@ pub enum GovernanceActionError {
|
|
|
AccessDenied,
|
|
|
}
|
|
|
|
|
|
-pub impl GovernanceActionErrorUnwrapWithFelt252<T> of UnwrapWithFelt252<T, GovernanceActionError> {
|
|
|
- fn unwrap_with_felt252(self: Result<T, GovernanceActionError>) -> T {
|
|
|
- match self {
|
|
|
- Result::Ok(v) => v,
|
|
|
- Result::Err(err) => core::panic_with_felt252(err.into()),
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
impl GovernanceActionErrorIntoFelt252 of Into<GovernanceActionError, felt252> {
|
|
|
fn into(self: GovernanceActionError) -> felt252 {
|
|
|
match self {
|
|
|
@@ -67,15 +49,6 @@ pub enum UpdatePriceFeedsError {
|
|
|
InsufficientFeeAllowance,
|
|
|
}
|
|
|
|
|
|
-pub impl UpdatePriceFeedsErrorUnwrapWithFelt252<T> of UnwrapWithFelt252<T, UpdatePriceFeedsError> {
|
|
|
- fn unwrap_with_felt252(self: Result<T, UpdatePriceFeedsError>) -> T {
|
|
|
- match self {
|
|
|
- Result::Ok(v) => v,
|
|
|
- Result::Err(err) => core::panic_with_felt252(err.into()),
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
impl UpdatePriceFeedsErrorIntoFelt252 of Into<UpdatePriceFeedsError, felt252> {
|
|
|
fn into(self: UpdatePriceFeedsError) -> felt252 {
|
|
|
match self {
|