#0
nonstandard
0.00004000 BSV
Q!Aý¾äëB £\ã$@9l IM<ßuÐèmP;hZQ®Mª{"__cls":"class Vote {\n constructor(to, distributor, name, numberOfVotes, can1name, can1PK, can2name, can2PK, can3name, can3PK) {\n this.votes = numberOfVotes\n this._owners = [to]\n this.name = name\n this.can1name = can1name\n this.can2name = can2name\n this.can3name = can3name\n this.cand1PK = can1PK\n this.cand2PK =can2PK \n this.cand3PK = can3PK\n this.distributor = distributor\n }\n \n distribute(to) {\n if (this.votes < 1) throw new Error()\n if (this._owners[0].toString() !== this.distributor.toString()){\n throw new Error('You cannot send your vote to another person.')\n }\n this.votes -= 1\n return new Vote(to,\n this.distributor, \n this.name, \n 1,\n this.can1name,\n this.cand1PK,\n this.can2name,\n this.cand2PK,\n this.can3name,\n this.cand3PK)\n }\n \n voteA(publicKey) {\n this._owners = [this.cand1PK]\n }\n \n voteB(publicKey) {\n this._owners = [this.cand2PK]\n }\n \n voteC(publicKey) {\n this._owners = [this.cand3PK]\n }\n }","__index":{"obj":0},"__args":["0341fdbee40eeb8a4220a35ce324409a396ca0494d3cdf9175d0e86d503b68175a","0341fdbee40eeb8a4220a35ce324409a396ca0494d3cdf9175d0e86d503b68175a","Worky",1000,"W","0265b7f6a9293b201b3c1325eded9ef0e7862d56f699643036f496ce37c9022c04","a","0383c5164f1194a604509bed3831f6c15e8dc1548f13b06ee1616ab6beb69b730b","y","038f41bfe07a84df238c554ca40a8c7e5b08bccb0f302ba244a29ad24e4634df5e"],"__func":"constructor"}u
https://whatsonchain.com/tx/abd29d3779ccddbf895ecb1d38c8e513ae6383d73c14bc789cda01c4135e1d60