Skip to content

Commit fce53c0

Browse files
authored
Merge pull request #554 from opentensor/sam-add-freeze-layout-devnet-2
[devnet-companion] prevent accidental changes to storage structs (2)
2 parents 61fa5bd + 925b06c commit fce53c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn freeze_struct_impl(
3737
let item = parse2::<ItemStruct>(tokens)?;
3838
let mut item_clone = item.clone();
3939

40-
let calculated_hash = generate_hash(&item);
40+
let calculated_hash = generate_hash(&item_clone);
4141
let calculated_hash_hex = format!("{:x}", calculated_hash);
4242

4343
if attr.is_empty() {

0 commit comments

Comments
 (0)