Merge pull request #18 from walkerflocker/master

fixed type errors
This commit is contained in:
Daniel van Flymen 2018-01-23 18:50:10 -05:00 committed by GitHub
commit fe6e97e240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ class Blockchain:
return False
def new_block(self, proof, previous_hash):
def new_block(self, proof: int, previous_hash: Optional[str]=None) -> Dict[str, Any]:
"""
Create a new Block in the Blockchain
@ -131,7 +131,7 @@ class Blockchain:
return self.last_block['index'] + 1
@property
def last_block(self):
def last_block(self) -> Dict[str, Any]:
return self.chain[-1]
@staticmethod