Skip to content

Commit

Permalink
storage
Browse files Browse the repository at this point in the history
  • Loading branch information
malik672 committed Dec 2, 2024
1 parent 94956ba commit a0d405e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/transient_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ fn transient_value() -> anyhow::Result<()> {
b"set_and_get_temp(int32)".to_vec(),
value.to_bytes32().to_vec(),
])?;
assert!(info.ret.is_empty());
assert_eq!(
info.storage
.get(&U256::from_le_bytes(TempCounter::STORAGE_KEY)),
Some(&U256::from(value))
);
assert!(!info.ret.is_empty());
assert_eq!(info.ret.to_bytes32(), value.to_bytes32());
}

Ok(())
Expand Down

0 comments on commit a0d405e

Please sign in to comment.