-
Notifications
You must be signed in to change notification settings - Fork 52
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
Mohammad/external tx/resource bounds/implement from trait #264
Conversation
There was a problem hiding this 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
There was a problem hiding this 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.
There was a problem hiding this 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);
bff11bc
to
029fb0c
Compare
There was a problem hiding this 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
There was a problem hiding this 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 r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @MohammadNassar1)
This change is