Skip to content

Commit

Permalink
rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Jan 21, 2025
1 parent fdfac63 commit 0f64ef1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions soroban-sdk/src/tests/token_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ fn test_stellar_asset_spec_includes_token_spec() -> Result<(), Error> {
.collect::<Result<HashSet<_>, _>>()?;

// Read all StellarAssetSpec entries
let stellar_xdr = StellarAssetSpec::spec_xdr();
let stellar_cursor = std::io::Cursor::new(stellar_xdr);
let stellar_entries: HashSet<ScSpecEntry> =
ScSpecEntry::read_xdr_iter(&mut Limited::new(stellar_cursor, Limits::none()))
let stellar_asset_xdr = StellarAssetSpec::spec_xdr();
let stellar_asset_cursor = std::io::Cursor::new(stellar_asset_xdr);
let stellar_asset_entries: HashSet<ScSpecEntry> =
ScSpecEntry::read_xdr_iter(&mut Limited::new(stellar_asset_cursor, Limits::none()))
.collect::<Result<HashSet<_>, _>>()?;

// Check that the token entries are a subset of stellar entries
assert!(
token_entries.is_subset(&stellar_entries),
token_entries.is_subset(&stellar_asset_entries),
"StellarAssetSpec is missing entries from TokenSpec"
);
Ok(())
Expand Down

0 comments on commit 0f64ef1

Please sign in to comment.