fixed type errors
This commit is contained in:
parent
f03d28f8ad
commit
b02379d769
|
@ -91,7 +91,7 @@ class Blockchain:
|
|||
|
||||
return False
|
||||
|
||||
def new_block(self, proof: int, previous_hash: Optional[str]) -> Dict[str, Any]:
|
||||
def new_block(self, proof: int, previous_hash: Optional[str]=None) -> Dict[str, Any]:
|
||||
"""
|
||||
Create a new Block in the Blockchain
|
||||
|
||||
|
@ -132,7 +132,7 @@ class Blockchain:
|
|||
return self.last_block['index'] + 1
|
||||
|
||||
@property
|
||||
def last_block(self) -> Dict[str: Any]:
|
||||
def last_block(self) -> Dict[str, Any]:
|
||||
return self.chain[-1]
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in New Issue