Transaction

2185b3cc655cbbec2640e2c1a0e1d571fe3568abc1f07cc19209447d964f3dd9
( - )
224,337
2020-10-11 21:35:27
1
1,947 B

2 Inputs

Total Input:
  • Q!ïW¸õF«ÊG\ÁW–Dï°_èö¾¡°¤Aö™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 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":["0210ef57b8f546abca475cc1579644ef18b05f05e8f6ee8da9bea1b0a41641f699","0210ef57b8f546abca475cc1579644ef18b05f05e8f6ee8da9bea1b0a41641f699","e1",5,"Candidate 1","0394fba6a57a34cd6f3ff114488a6bed7dfe5f474602585fd7466b1938dc97cc23","Candidate 2","023cd67733bb40d98b8a2532e8372e090e4b70429ab5218e2da8b932f508e03af1"],"__func":"constructor"}u
    https://whatsonchain.com/tx/undefined

3 Outputs

Total Output:
  • Q!ïW¸õF«ÊG\ÁW–Dï°_èö¾¡°¤Aö™Q®Lƒ{"__index":{"obj":0,"res":1},"__args":["02f198e296c4c6001c9532250db23c40b6cb6c9285c943180ee97008dd41a25486"],"__func":"distribute"}u
    https://whatsonchain.com/tx/2185b3cc655cbbec2640e2c1a0e1d571fe3568abc1f07cc19209447d964f3dd9
  • Q!ñ˜â–ÄÆ•2% ²<@¶Ël’…ÉCépÝA¢T†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 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 }"}u
    https://whatsonchain.com/tx/2185b3cc655cbbec2640e2c1a0e1d571fe3568abc1f07cc19209447d964f3dd9