Q!×.¥¢(º{7ýÿ¬ö¼¢ª¦ïéõâ£LAÐ.wOx0Q®M{"__cls":"class Vote {\n constructor(to, distributor, name, numberOfVotes, \n can1name, can1PK, \n can2name, can2PK //, \n// can3name, can3PK\n ) {\n this.votes = numberOfVotes\n this._owners = [to]\n // name of the election\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(\"There are not enough votes to distribute\")}\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 \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":["02d79c102ea5a228ba7b37fdffacf6bca2aaa606efe9f5e2a34c41d02e774f7830","02d79c102ea5a228ba7b37fdffacf6bca2aaa606efe9f5e2a34c41d02e774f7830","x1",1,"Candidate 1","0363f04d6c52c5229aa298d43c1931811cb9aa8c21edc02ecba992f1e1a93758af","Candidate 2","03c6625c07927fa17287e2e5b187567275fcc1200dbd1325c6b4fae72b47c97bde"],"__func":"constructor"}u
https://whatsonchain.com/tx/undefined