Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Fix a couple hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Jun 29, 2021
1 parent 80ec2cf commit 2ef7858
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/eth1spec/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def secp256k1_recover(r: U256, s: U256, v: U256, msg_hash: Hash32) -> Bytes:
Returns
-------
public_key : `eth1spec.eth_types.Bytes`
public_key : `eth1spec.base_types.Bytes`
Recovered public key.
"""
r_bytes = r.to_be_bytes32()
Expand Down
2 changes: 1 addition & 1 deletion src/eth1spec/evm/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from typing import List

from ..eth_types import U256
from ..base_types import U256
from .error import StackOverflowError, StackUnderflowError


Expand Down
13 changes: 6 additions & 7 deletions src/eth1spec/rlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

from typing import List, Sequence, Union, cast

from .base_types import U256, Uint
from .eth_types import Bytes
from .base_types import U256, Bytes, Uint

RLP = Union[Bytes, Uint, U256, Sequence["RLP"]] # type: ignore

Expand All @@ -39,7 +38,7 @@ def encode(raw_data: RLP) -> Bytes:
Returns
-------
encoded : `eth1spec.eth_types.Bytes`
encoded : `eth1spec.base_types.Bytes`
The RLP encoded bytes representing `raw_data`.
"""
if isinstance(raw_data, (bytearray, bytes)):
Expand Down Expand Up @@ -67,7 +66,7 @@ def encode_bytes(raw_bytes: Bytes) -> Bytes:
Returns
-------
encoded : `eth1spec.eth_types.Bytes`
encoded : `eth1spec.base_types.Bytes`
The RLP encoded bytes representing `raw_bytes`.
"""
len_raw_data = Uint(len(raw_bytes))
Expand Down Expand Up @@ -97,7 +96,7 @@ def encode_sequence(raw_sequence: Sequence[RLP]) -> Bytes:
Returns
-------
encoded : `eth1spec.eth_types.Bytes`
encoded : `eth1spec.base_types.Bytes`
The RLP encoded bytes representing `raw_sequence`.
"""
joined_encodings = get_joined_encodings(raw_sequence)
Expand Down Expand Up @@ -126,7 +125,7 @@ def get_joined_encodings(raw_sequence: Sequence[RLP]) -> Bytes:
Returns
-------
joined_encodings : `eth1spec.eth_types.Bytes`
joined_encodings : `eth1spec.base_types.Bytes`
The concatenated RLP encoded bytes for each item in sequence
raw_sequence.
"""
Expand Down Expand Up @@ -183,7 +182,7 @@ def decode_to_bytes(encoded_bytes: Bytes) -> Bytes:
Returns
-------
decoded : `eth1spec.eth_types.Bytes`
decoded : `eth1spec.base_types.Bytes`
RLP decoded Bytes data
"""
if len(encoded_bytes) == 1 and encoded_bytes[0] < 0x80:
Expand Down
4 changes: 2 additions & 2 deletions src/eth1spec/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def map_keys(
Returns
-------
out :
out : `Mapping[eth1spec.base_types.Bytes, Node]`
Object with keys mapped to nibble-byte form.
"""
mapped: MutableMapping[Bytes, Node] = {}
Expand Down Expand Up @@ -182,7 +182,7 @@ def patricialize(obj: Mapping[Bytes, Node], i: Uint) -> rlp.RLP:
Returns
-------
node : `eth1spec.eth_types.Bytes`
node : `eth1spec.base_types.Bytes`
Root node of `obj`.
"""
if len(obj) == 0:
Expand Down

0 comments on commit 2ef7858

Please sign in to comment.