Skip to content

No public token getter in vesting wallet #243

Description

@ritaifeoluwa

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions