Skip to content

[BUG] AccountActions shouldn't specify Context in init definition #19872

@shiqicao

Description

@shiqicao

What are you trying to do?

impl<Context> AccountActions<Context> {
    pub fn init(context: Context, is_valid_impl: fn(&mut PrivateContext, Field) -> bool) -> Self {
        AccountActions { context, is_valid_impl }
    }
}

Code Reference

impl<Context> AccountActions<Context> {
    pub fn init(context: Context, is_valid_impl: fn(&mut PrivateContext, Field) -> bool) -> Self {
        AccountActions { context, is_valid_impl }
    }
}

should be

impl<Context> AccountActions<Context> {
    pub fn init(context: Context, is_valid_impl: fn(Context, Field) -> bool) -> Self {
        AccountActions { context, is_valid_impl }
    }
}

Aztec Version

v3.0.0-devnet.6-patch.1

OS

No response

Browser (if relevant)

No response

Node Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bugType: Bug. Something is broken.from-communityThis originated from the community :)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions