Created
December 29, 2017 21:55
-
-
Save azamsharp/48e8e8f479d9eca681774dc3a575df3a to your computer and use it in GitHub Desktop.
Blockchain Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BlockchainNode :Codable { | |
var address :String | |
init(address :String) { | |
self.address = address | |
} | |
init?(request :Request) { | |
guard let address = request.data["address"]?.string else { | |
return nil | |
} | |
self.address = address | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment