Skip to content

Commit

Permalink
Remove request type byte in T8N
Browse files Browse the repository at this point in the history
  • Loading branch information
petertdavies committed Nov 22, 2024
1 parent 5278aa0 commit 4e18716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ethereum_spec_tools/evm_tools/t8n/t8n_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ def to_json(self) -> Any:
assert self.requests is not None

data["requestsHash"] = encode_to_hex(self.requests_hash)
data["requests"] = [encode_to_hex(req) for req in self.requests]
# T8N doesn't consider the request type byte to be part of the
# request
data["requests"] = [encode_to_hex(req[1:]) for req in self.requests]

return data

0 comments on commit 4e18716

Please sign in to comment.