#0
nonstandard
0.00004000 BSV
Q!]w»°k"Tlx|?à
I*ed¶Ô¼uVU'Ý Q®MX{"__cls":"class Vote {\n constructor(to, 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.distributors = [to]\n }\n \n distribute(to) {\n if (this.votes < 1) throw new Error()\n if (this._owners[0].toString() !== this.distributors[0].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.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() {\n this._owners = [this.candidate1PK]\n }\n \n voteB() {\n this._owners = [this.candidate2PK]\n }\n \n voteC() {\n this._owners = [this.candidate3PK]\n }\n }","__index":{"obj":0},"__args":["035d77bb0bb06b22546c788e7c3f0fe00a01492a6564b61c92d4bc75565527dd00","Congressional 214 - 2020",500000,"Colin Powell","0365b1280b8eda84e023bed3cc7006d31c6eb9ac5e1350d84385df5ca34566a1e0","Justin Bieber","02f59fe25c956da35114cfd471c84f97efe25153c9c35334c0f7c89a14f6c89ea4","Carol Baskin","034f3b615dad13e4de9d40eb4a5f0a29af15e5d5668afa9791e914610930a60a12"],"__func":"constructor"}u
https://whatsonchain.com/tx/cf3f1c2a99d0d9e1e2f8d7d771e6d33360b05664093e64bf6aa1c829d60ede5a