We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The encode_node function signature is def encode_node(node: Node, storage_root: Optional[Bytes] = None) -> Bytes: with
encode_node
def encode_node(node: Node, storage_root: Optional[Bytes] = None) -> Bytes:
Node = Union[ Account, Bytes, LegacyTransaction, Receipt, Uint, U256, Withdrawal, None ]
The None in the Node definition makes it incompatible with the rlp.Extended type used in the body in rlp.encode(node).
None
Node
rlp.Extended
rlp.encode(node)
Either Extended should have Optional or Node not have None.
Extended
Optional
See https://github.com/ethereum/execution-specs/blob/master/src/ethereum/cancun/trie.py#L154-L168
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Metadata
What was wrong?
The
encode_node
function signature isdef encode_node(node: Node, storage_root: Optional[Bytes] = None) -> Bytes:
withThe
None
in theNode
definition makes it incompatible with therlp.Extended
type used in the body inrlp.encode(node)
.Either
Extended
should haveOptional
orNode
not haveNone
.See https://github.com/ethereum/execution-specs/blob/master/src/ethereum/cancun/trie.py#L154-L168
The text was updated successfully, but these errors were encountered: