Skip to content

Commit

Permalink
Fix blockHash typo in rom.json and rom.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Nov 30, 2023
1 parent 06d5b14 commit 06b9a13
Show file tree
Hide file tree
Showing 4 changed files with 178,267 additions and 178,286 deletions.
4 changes: 2 additions & 2 deletions src/main_sm/fork_7/main/full_tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,10 @@ zkresult FullTracer::onFinishBlock (Context &ctx)
currentBlock.ger = NormalizeTo0xNFormat(auxScalar.get_str(16), 64);

// Get block hash L1
zkr = getVarFromCtx(ctx, true, ctx.rom.blockchashL1InfoTreeOffset, auxScalar);
zkr = getVarFromCtx(ctx, true, ctx.rom.blockHashL1InfoTreeOffset, auxScalar);
if (zkr != ZKR_SUCCESS)
{
zklog.error("FullTracer::onFinishBlock() failed calling getVarFromCtx(ctx.rom.blockchashL1InfoTreeOffset)");
zklog.error("FullTracer::onFinishBlock() failed calling getVarFromCtx(ctx.rom.blockHashL1InfoTreeOffset)");
return zkr;
}
currentBlock.block_hash_l1 = NormalizeTo0xNFormat(auxScalar.get_str(16), 64);
Expand Down
2 changes: 1 addition & 1 deletion src/main_sm/fork_7/main/rom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void Rom::load(Goldilocks &fr, json &romJson)
timestampOffset = getMemoryOffset("timestamp");
gerL1InfoTreeOffset = getMemoryOffset("gerL1InfoTree");
previousBlockHashOffset = getMemoryOffset("previousBlockHash");
blockchashL1InfoTreeOffset = getMemoryOffset("blockchashL1InfoTree");
blockHashL1InfoTreeOffset = getMemoryOffset("blockHashL1InfoTree");
isChangeL2BlockTxOffset = getMemoryOffset("isChangeL2BlockTx");
txIndexOffset = getMemoryOffset("txIndex");
l2TxHashOffset = getMemoryOffset("l2TxHash");
Expand Down
4 changes: 2 additions & 2 deletions src/main_sm/fork_7/main/rom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Rom
uint64_t timestampOffset;
uint64_t gerL1InfoTreeOffset;
uint64_t previousBlockHashOffset;
uint64_t blockchashL1InfoTreeOffset;
uint64_t blockHashL1InfoTreeOffset;
uint64_t isChangeL2BlockTxOffset;
uint64_t txIndexOffset;
uint64_t l2TxHashOffset;
Expand Down Expand Up @@ -124,7 +124,7 @@ class Rom
timestampOffset(0),
gerL1InfoTreeOffset(0),
previousBlockHashOffset(0),
blockchashL1InfoTreeOffset(0),
blockHashL1InfoTreeOffset(0),
isChangeL2BlockTxOffset(0),
txIndexOffset(0),
l2TxHashOffset(0)
Expand Down
Loading

0 comments on commit 06b9a13

Please sign in to comment.