Description
The vesting wallet does not have a way to query the token address. While get_token exists internally, there is no public getter.
Current behavior
get_token is a private function.
Expected behavior
Add a public getter:
pub fn token(env: Env) -> Result<Address, VestingError> {
require_initialized(&env)?;
Ok(get_token(&env))
}
Why this matters
Frontend apps need the token address for display and transaction building.
Labels
enhancement, good first issue
Description
The vesting wallet does not have a way to query the token address. While
get_tokenexists internally, there is no public getter.Current behavior
get_tokenis a private function.Expected behavior
Add a public getter:
Why this matters
Frontend apps need the token address for display and transaction building.
Labels
enhancement, good first issue