This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "voting.sol": { | |
| "__sources__": { | |
| "voting.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.20;\r\n\r\ncontract Voting {\r\n mapping(string => uint) public votes;\r\n\r\n function vote(string memory candidate) public {\r\n votes[candidate]++;\r\n }\r\n\r\n function getVotes(string memory candidate) public view returns(uint) {\r\n return votes[candidate];\r\n }\r\n}", | |
| "file": "voting.sol" | |
| } | |
| } | |
| }, | |
| "voting2.sol": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "voting.sol": { | |
| "__sources__": { | |
| "voting.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.20;\r\n\r\ncontract Voting {\r\n mapping(string => uint) public votes;\r\n\r\n function vote(string memory candidate) public {\r\n votes[candidate]++;\r\n }\r\n\r\n function getVotes(string memory candidate) public view returns(uint) {\r\n return votes[candidate];\r\n }\r\n}", | |
| "file": "voting.sol" | |
| } | |
| } | |
| }, | |
| "voting2.sol": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity 0.8.19; | |
| contract Voting { | |
| mapping(string => uint256) public votes; | |
| function vote(string memory candidate) public { | |
| votes[candidate] += 1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "voting.sol": { | |
| "__sources__": { | |
| "voting.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\r\npragma solidity ^0.8.20;\r\n\r\ncontract Voting {\r\n mapping(string => uint) public votes;\r\n\r\n function vote(string memory candidate) public {\r\n votes[candidate]++;\r\n }\r\n\r\n function getVotes(string memory candidate) public view returns(uint) {\r\n return votes[candidate];\r\n }\r\n}", | |
| "file": "voting.sol" | |
| } | |
| } | |
| }, | |
| "voting2.sol": { |