Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Sep 17, 2024
1 parent f4287d3 commit a101940
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions soroban-sdk/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use super::{
ConversionError, Env, String, TryFromVal, TryIntoVal, Val,
};

#[cfg(not(target_family = "wasm"))]
use crate::env::internal::xdr::ScVal;
#[cfg(any(test, feature = "testutils", not(target_family = "wasm")))]
use crate::env::xdr::ScAddress;
#[cfg(not(target_family = "wasm"))]
use crate::{env::internal::xdr::ScVal, FromVal};
use crate::{unwrap::UnwrapInfallible, Bytes, Vec};

/// Address is a universal opaque identifier to use in contracts.
Expand Down
7 changes: 3 additions & 4 deletions soroban-sdk/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,9 @@ impl<T> From<Vec<T>> for VecM<ScVal> {
}

#[cfg(not(target_family = "wasm"))]
impl<T> TryFrom<Vec<T>> for ScVal {
type Error = ConversionError;
fn try_from(v: Vec<T>) -> Result<Self, ConversionError> {
(&v).try_into()
impl<T> From<Vec<T>> for ScVal {
fn from(v: Vec<T>) -> Self {
(&v).into()
}
}

Expand Down

0 comments on commit a101940

Please sign in to comment.