Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchor ts example 4 relies on deprecated anotation #state #1701

Closed
arielsegura opened this issue Mar 29, 2022 · 7 comments
Closed

Anchor ts example 4 relies on deprecated anotation #state #1701

arielsegura opened this issue Mar 29, 2022 · 7 comments

Comments

@arielsegura
Copy link

This is deprecated and needs to be updated

https://github.com/project-serum/anchor/blob/40596824bf85df8c2b3313a677ebbaef559361c9/examples/tutorial/basic-4/programs/basic-4/src/lib.rs#L10

@arielsegura
Copy link
Author

I will try to fix it and use the new method.<methodname>.rpc() notation. Let me know if there's a better way

@nazreen
Copy link
Contributor

nazreen commented Apr 16, 2022

@arielsegura you highlighted line 10 which has #[state]
does that mean that the state attribute is no longer used?

@arielsegura
Copy link
Author

it's used, but it's deprecated and it will be removed soon so we should fix the examples

@armaniferrante
Copy link
Member

We should simply remove the example completely.

@arielsegura
Copy link
Author

@armaniferrante why?

@arielsegura
Copy link
Author

The current example may bring no value at all, but I think that after merging this #1700 it will be useful for others

@acheroncrypto
Copy link
Collaborator

Removed in #2285.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants