We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a86a9fb + 16ea2a9 commit d92cd20Copy full SHA for d92cd20
crates/yulgen/src/runtime/functions/data.rs
@@ -350,7 +350,7 @@ pub fn alloc_mstoren() -> yul::Statement {
350
pub fn map_value_ptr() -> yul::Statement {
351
function_definition! {
352
function map_value_ptr(a, b) -> return_val {
353
- (let ptr := avail())
+ (let ptr := alloc(64))
354
(mstore(ptr, a))
355
(mstore((add(ptr, 32)), b))
356
(let hash := keccak256(ptr, 64))
newsfragments/684.bugfix.md
@@ -0,0 +1 @@
1
+The region of memory used to compute the slot of a storage map value was not being allocated.
0 commit comments