Transaction

6fed41211282c4bf3c352e0c748e48871e343214051c3845a0995b47c5ab8689
( - )
220,938
2020-10-17 00:51:40
1
1,972 B

2 Inputs

Total Input:
  • Q!mU5[‹€Ä™^FݓΓSSÿ§ï8ÏÅ`‰xŠQ®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() {\n console.log()\n this._owners = [this.cand1PK]\n }\n \n voteB() {\n this._owners = [this.cand2PK]\n }\n \n // voteC() {\n // this._owners = [this.cand3PK]\n // }\n }","__index":{"obj":0},"__args":["036d551b355b8b80c4995e46dd1293ce1b935353ffa7ef1a38cfc560c28901788a","036d551b355b8b80c4995e46dd1293ce1b935353ffa7ef1a38cfc560c28901788a","E1",3,"Candidate 1","03fbf02165e618d575a5c30952d684e4344858fb1b06488ff56de73505824f8d9d","Candidate 2","0213a2da68859f6e9584bb7332ac7f2b4a61700ddf3e66b5186e08d519fa2d9385"],"__func":"constructor"}u
    https://whatsonchain.com/tx/undefined

3 Outputs

Total Output:
  • Q!mU5[‹€Ä™^FݓΓSSÿ§ï8ÏÅ`‰xŠQ®Lƒ{"__index":{"obj":0,"res":1},"__args":["03076a788159a75363bf3a540134ef41666d9e882d522373508a0ae7c814755b43"],"__func":"distribute"}u
    https://whatsonchain.com/tx/6fed41211282c4bf3c352e0c748e48871e343214051c3845a0995b47c5ab8689
  • Q!jxY§Sc¿:T4ïAfmžˆ-R#sPŠ çÈu[CQ®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() {\n console.log()\n this._owners = [this.cand1PK]\n }\n \n voteB() {\n this._owners = [this.cand2PK]\n }\n \n // voteC() {\n // this._owners = [this.cand3PK]\n // }\n }"}u
    https://whatsonchain.com/tx/6fed41211282c4bf3c352e0c748e48871e343214051c3845a0995b47c5ab8689