-
Notifications
You must be signed in to change notification settings - Fork 2
Extended execute_input method #21
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||||
|
|
||||||
| use alloy::{ | ||||||
| primitives::{Address, map::HashMap}, | ||||||
| rpc::types::trace::geth::GethTrace, | ||||||
| rpc::types::trace::geth::{AccountState, DiffMode, GethTrace}, | ||||||
| }; | ||||||
| use revive_dt_compiler::{Compiler, CompilerInput, SolidityCompiler}; | ||||||
| use revive_dt_config::Arguments; | ||||||
|
|
@@ -94,15 +94,22 @@ where | |||||
| &mut self, | ||||||
| input: &Input, | ||||||
| node: &T::Blockchain, | ||||||
| ) -> anyhow::Result<GethTrace> { | ||||||
| ) -> anyhow::Result<(GethTrace, DiffMode)> { | ||||||
| let receipt = node.execute_transaction(input.legacy_transaction( | ||||||
| self.config.network_id, | ||||||
| 0, | ||||||
| &self.deployed_contracts, | ||||||
| )?)?; | ||||||
| dbg!(&receipt); | ||||||
| //node.trace_transaction(receipt) | ||||||
| todo!() | ||||||
|
|
||||||
| log::debug!("Transaction receipt: {:?}", receipt); | ||||||
|
|
||||||
| let trace = node.trace_transaction(receipt.clone())?; | ||||||
|
|
||||||
| log::debug!("Trace result: {:?}", trace); | ||||||
|
||||||
| log::debug!("Trace result: {:?}", trace); | |
| log::trace!("Trace result: {:?}", trace); |
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.
Changed in the new revision
Outdated
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.
Those should emit trace logs instead of println! to the console.
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.
Changed in the new revision
Outdated
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.
| log::info!("State diffs match between leader and follower."); | |
| log::debug!("State diffs match between leader and follower."); |
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.
Changed in the new revision
Outdated
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.
| log::warn!("State diffs mismatch between leader and follower."); | |
| log::debug!("State diffs mismatch between leader and follower."); |
This is expected and not indicating a problem per se.
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.
Right
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.
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.
Changed in the new revision