-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(rpc/otterscan): set total_fees in ots_getBlockDetails #9477
Conversation
Signed-off-by: jsvisa <delweng@gmail.com>
Signed-off-by: jsvisa <delweng@gmail.com>
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.
ty!
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.
lgtm, will need a rebase tomorrow after the bump
crates/rpc/rpc/src/otterscan.rs
Outdated
.map(|receipt| receipt.gas_used.saturating_mul(receipt.effective_gas_price)) | ||
.sum::<u128>(); | ||
|
||
Ok(Some(BlockDetails::new(block, Default::default(), U256::from(total_fees)))) |
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.
looks like the lint err is blocked on alloy bump, which should be coming soon
wait for alloy new release ref alloy-rs/alloy#1043