Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created December 29, 2017 21:55
Show Gist options
  • Save azamsharp/48e8e8f479d9eca681774dc3a575df3a to your computer and use it in GitHub Desktop.
Save azamsharp/48e8e8f479d9eca681774dc3a575df3a to your computer and use it in GitHub Desktop.
Blockchain Node
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