#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","Enough Satoshis?",100000,"Yup ","03dc09d7a4738e4a43308e871bb1a7a741aec7d62b2e27e6a688f23543d9ea55a7","No","03c9483577452a6d4bda89f79dfe727e5e89b7f26eda6469b64263784f3b5758ef","Maybe ","03874417170c7a2054cb5bb01489bb9a59bffd137125d289afc10661ec902b83d9"],"__func":"constructor"}u
https://whatsonchain.com/tx/b4a1aabe8235633a4546feb351c1c56951c8c988f950b442635ec3345c6022d2