Created
January 4, 2018 21:20
-
-
Save azamsharp/3cb71f148720b117540e46232af641f1 to your computer and use it in GitHub Desktop.
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 Blockchain { | |
private (set) var blocks :[Block] = [Block]() | |
private (set) var contracts :[SmartContract] = [SmartContract]() | |
init() { | |
// initialize contracts | |
initializeContracts() | |
} | |
private func initializeContracts() { | |
self.contracts = [InternationalDomesticTransferFeesContract(),MaximumAmountTransferFundsContract()] | |
} | |
// there is more code to the blockchain which you can download from the link in the post | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment