Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

fix: add missing ft_metadata view function to fungible token example - #428

Closed
tenderdeve wants to merge 1 commit into
near:developfrom
tenderdeve:fix/ft-example-metadata
Closed

tenderdeve wants to merge 1 commit into
near:developfrom
tenderdeve:fix/ft-example-metadata

Conversation

@tenderdeve

Copy link
Copy Markdown

Summary

  • The my-ft example defines and stores FungibleTokenMetadata but never exposes it via a view function, violating NEP-148
  • Add ft_metadata() view function and implement FungibleTokenMetadataProvider interface
  • Follows the same pattern used by the NFT example (my-nft.ts line 173)

File: examples/src/fungible-token/my-ft.ts

Fixes #415

Test plan

  • Build the example: pnpm build
  • Call ft_metadata on a deployed instance — should return the metadata object
  • Existing FT tests pass

The my-ft example defines and stores FungibleTokenMetadata but never
exposes it via a view function, violating NEP-148. Add ft_metadata()
and implement FungibleTokenMetadataProvider, matching the pattern
used by the NFT example.

Fixes near#415
@github-project-automation github-project-automation Bot moved this to NEW❗ in DevTools Apr 28, 2026
@tenderdeve
tenderdeve marked this pull request as ready for review April 28, 2026 10:03

@volovyks volovyks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm no longer working on this repository, so I'm removing myself as a reviewer. Please re-request a review from the current maintainers.

@gagdiez gagdiez closed this Oct 30, 2026
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevTools Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

my-ft example defines metadata but does not expose function to retrieve it

3 participants