stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
62 stars 42 forks source link

Validate assets when trying to create SAC instance. #1270

Closed dmkozh closed 11 months ago

dmkozh commented 11 months ago

What

Validate assets when trying to create SAC instance.

Resolves https://github.com/stellar/rs-soroban-env/issues/1262

Why

We should only create SAC instances for assets that are potentially usable; instances based on invalid assets can never be used with classic accounts, but can be used on Soroban, which might be a source of confusion/bugs.

Known limitations

N/A