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

Mohammad/external tx/resource bounds/implement from trait #264

Conversation

MohammadNassar1
Copy link
Contributor

@MohammadNassar1 MohammadNassar1 commented May 30, 2024

This change is Reviewable

@MohammadNassar1 MohammadNassar1 requested a review from elintul May 30, 2024 15:24
@MohammadNassar1 MohammadNassar1 changed the base branch from main to main-mempool June 2, 2024 06:57
Copy link
Collaborator

@elintul elintul left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @MohammadNassar1)


src/external_transaction.rs line 172 at r1 (raw file):

}

impl From<ResourceBoundsMapping> for crate::transaction::ResourceBoundsMapping {

I'm confused; why do we need both types?

Code quote:

crate::transaction::ResourceBoundsMapping

Copy link
Contributor Author

@MohammadNassar1 MohammadNassar1 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @elintul)


src/external_transaction.rs line 172 at r1 (raw file):

Previously, elintul (Elin) wrote…

I'm confused; why do we need both types?

The RPC field expects small letters l1_gas & l2_gas.
While the transaction is Capital letters, which doesn't follow the spec.

Copy link
Collaborator

@elintul elintul left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @MohammadNassar1)


src/external_transaction.rs line 176 at r1 (raw file):

        let mut map = BTreeMap::new();
        map.insert(Resource::L1Gas, mapping.l1_gas);
        map.insert(Resource::L2Gas, mapping.l2_gas);

Please use a BTreeMap c-tor from tuples.

Code quote:

        let mut map = BTreeMap::new();
        map.insert(Resource::L1Gas, mapping.l1_gas);
        map.insert(Resource::L2Gas, mapping.l2_gas);

@MohammadNassar1 MohammadNassar1 force-pushed the mohammad/external-tx/resource-bounds/implement-from-trait branch from bff11bc to 029fb0c Compare June 3, 2024 14:18
Copy link
Contributor Author

@MohammadNassar1 MohammadNassar1 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @elintul)


src/external_transaction.rs line 176 at r1 (raw file):

Previously, elintul (Elin) wrote…

Please use a BTreeMap c-tor from tuples.

Done

Copy link
Collaborator

@elintul elintul left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @MohammadNassar1)

@MohammadNassar1 MohammadNassar1 merged commit 859f491 into main-mempool Jun 3, 2024
1 check passed
@MohammadNassar1 MohammadNassar1 deleted the mohammad/external-tx/resource-bounds/implement-from-trait branch June 3, 2024 14:32
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

Successfully merging this pull request may close these issues.

2 participants