Skip to content

Commit

Permalink
Merge pull request #8136 from joseandro/fix/make_alphabet
Browse files Browse the repository at this point in the history
op-challenger: fixes latestBlockNumber signature and ROOT_CLAIM length
  • Loading branch information
ajsutton authored Nov 12, 2023
2 parents ea2a13c + cdece16 commit 23ba757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion op-challenger/scripts/alphabet/init_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ done
# Alphabet game claim construction: keccak256(abi.encode(trace_index, trace[trace_index]))
ROOT_CLAIM=$(cast keccak $(cast abi-encode "f(uint256,uint256)" 15 122))
# Replace the first byte of the claim with the invalid vm status indicator
ROOT_CLAIM="0x01${ROOT_CLAIM:4:60}"
ROOT_CLAIM="0x01${ROOT_CLAIM:4}"

GAME_TYPE=255 ${SOURCE_DIR}/../create_game.sh http://localhost:8545 "${DISPUTE_GAME_FACTORY}" "${ROOT_CLAIM}" --private-key "${DEVNET_SPONSOR}"
2 changes: 1 addition & 1 deletion op-challenger/scripts/create_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BLOCK_ORACLE_ADDR=$(cast call --rpc-url "${RPC}" "${GAME_IMPL_ADDR}" 'BLOCK_ORAC
echo "Block Oracle: ${BLOCK_ORACLE_ADDR}"

# Get the L2 block number of the latest output proposal. This is the proposal that will be disputed by the created game.
L2_BLOCK_NUM=$(cast call --rpc-url "${RPC}" "${L2OO_ADDR}" 'latestBlockNumber() public view returns (uint256)')
L2_BLOCK_NUM=$(cast call --rpc-url "${RPC}" "${L2OO_ADDR}" 'latestBlockNumber() returns(uint256)')
echo "L2 Block Number: ${L2_BLOCK_NUM}"

# Create a checkpoint in the block oracle to commit to the current L1 head.
Expand Down

0 comments on commit 23ba757

Please sign in to comment.