Skip to content

Commit

Permalink
add more codes for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Jan 21, 2025
1 parent e3cf729 commit ef78b75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ starcoin-crypto = { git = "https://github.com/starcoinorg/starcoin-crypto", rev
starcoin-decrypt = { path = "commons/decrypt" }
starcoin-dev = { path = "vm/dev" }
starcoin-executor = { path = "executor" }
starcoin-framework = { path = "vm/framework" }
starcoin-framework = { path = "vm/framework", features = ["testing"] }
starcoin-sdk-builder = { path = "vm/starcoin-sdk-builder" }
starcoin-genesis = { path = "genesis" }
starcoin-logger = { path = "commons/logger" }
Expand Down
8 changes: 6 additions & 2 deletions state/statedb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ impl AccountStateObject {
.transpose()?
.flatten()),
DataPath::Resource(struct_tag) => self.resource_tree.lock().get(struct_tag),
DataPath::ResourceGroup(_) => {
bail!("resource_group_tree not support get");
DataPath::ResourceGroup(struct_tag) => {
eprintln!(
"redirect getting resource_group_tree to resource_tree {}",
data_path
);
self.resource_tree.lock().get(struct_tag)
}
}
}
Expand Down

0 comments on commit ef78b75

Please sign in to comment.