Skip to content

Commit

Permalink
chore: fix code hash for witness check.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed Sep 4, 2024
1 parent d1ace9b commit ee07a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ethereum_test_types/verkle/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"""

from enum import Enum
from hashlib import sha3_256 as keccak256
from typing import Any, Dict, List, Optional, Tuple

from ethereum.crypto.hash import keccak256
from pydantic import Field, RootModel, field_validator
from pydantic.functional_serializers import model_serializer

Expand Down Expand Up @@ -199,7 +199,7 @@ def add_account_full(self, address: Address, account: Account | None) -> None:
"""
self.add_account_basic_data(address, account)
if account and account.code:
code_hash = Hash(keccak256(account.code).digest())
code_hash = Hash(keccak256(account.code))
self.add_account_codehash(address, code_hash)

def add_account_basic_data(self, address: Address, account: Account | None) -> None:
Expand Down

0 comments on commit ee07a4f

Please sign in to comment.