Skip to content

AggLayer: Encapsulate the creation of agglayer faucet and bridge in structs with new constructor #2371

@mmagician

Description

@mmagician

this is nice and contained. I'd love to see a similar pattern done for create_agglayer_faucet_component, where we have a struct and a way to convert it into an AccountComponent easily. And then we could avoid hardcoding the metadata layout and use sth like to_metadata_word here.

pub struct AggLayerFaucet {
   // ...
}

impl From<AggLayerFaucet> for AccountComponent {
    // ...
}

I'll open an issue to track this.

(and same for AggLayerBridge)

Originally posted by @mmagician in #2335 (comment)

Metadata

Metadata

Assignees

Labels

agglayerPRs or issues related to AggLayer bridging integrationgood first issueGood for newcomers

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions