Skip to content

Commit

Permalink
revert wasm hash
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-bousfield committed Apr 30, 2024
1 parent 8b6aded commit 707e3d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/state/Deserialize.sol
Original file line number Diff line number Diff line change
Expand Up @@ -232,20 +232,17 @@ library Deserialize {
ModuleMemory memory mem;
bytes32 tablesMerkleRoot;
bytes32 functionsMerkleRoot;
bytes32 wasmHash;
uint32 internalsOffset;
(globalsMerkleRoot, offset) = b32(proof, offset);
(mem, offset) = moduleMemory(proof, offset);
(tablesMerkleRoot, offset) = b32(proof, offset);
(functionsMerkleRoot, offset) = b32(proof, offset);
(wasmHash, offset) = b32(proof, offset);
(internalsOffset, offset) = u32(proof, offset);
mod = Module({
globalsMerkleRoot: globalsMerkleRoot,
moduleMemory: mem,
tablesMerkleRoot: tablesMerkleRoot,
functionsMerkleRoot: functionsMerkleRoot,
wasmHash: wasmHash,
internalsOffset: internalsOffset
});
}
Expand Down
2 changes: 0 additions & 2 deletions src/state/Module.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ struct Module {
ModuleMemory moduleMemory;
bytes32 tablesMerkleRoot;
bytes32 functionsMerkleRoot;
bytes32 wasmHash;
uint32 internalsOffset;
}

Expand All @@ -27,7 +26,6 @@ library ModuleLib {
mod.moduleMemory.hash(),
mod.tablesMerkleRoot,
mod.functionsMerkleRoot,
mod.wasmHash,
mod.internalsOffset
)
);
Expand Down

0 comments on commit 707e3d4

Please sign in to comment.