Skip to content

[Contract] Add get_version function to contract #325

@Yunusabdul38

Description

@Yunusabdul38

Description: Complement the version constant by exposing it through a public view function for off-chain services. Tasks:

Implement get_version(env: Env) -> u32 in the contract implementation.
Return the custom VERSION constant.
Add a simple unit test for this getter.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions