Commit b17d8fcd authored by George Hotz's avatar George Hotz

still wrong

parent 2ef57c8c
......@@ -43,7 +43,7 @@ contract MIPSMemory {
return bytes32((uint256(c.A[0]) << 192) |
(uint256(c.A[1]) << 128) |
(uint256(c.A[2]) << 64) |
c.A[3]);
(uint256(c.A[3]) << 0));
}
function AddMerkleState(bytes32 stateHash, uint32 addr, uint32 value, string calldata proof) public {
......
......@@ -12,6 +12,7 @@ describe("MIPSMemory contract", function () {
await mm.AddLargePreimageInit();
console.log("preimage initted");
// block size is 136
const a = ["0x0100000000000000",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x80];
await mm.AddLargePreimageUpdate(a);
console.log("preimage updated");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment