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

Can't use 'nonce' as parameter in zero_copy constructor #347

Closed
NorbertBodziony opened this issue May 31, 2021 · 1 comment
Closed

Can't use 'nonce' as parameter in zero_copy constructor #347

NorbertBodziony opened this issue May 31, 2021 · 1 comment

Comments

@NorbertBodziony
Copy link
Contributor

Seems like constructor already have defined 'nonce' parameter under the hood so following syntax will not use defined parameter:

 pub fn new(
            &mut self,
            ctx: Context<New>,
            nonce: u8,
        ) -> ProgramResult {}
@armaniferrante
Copy link
Member

Closing in favor of the original #55.

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

2 participants