Skip to content

Instantly share code, notes, and snippets.

View V2035's full-sized avatar

Vasavi V2035

  • bangalore
  • 16:52 (UTC -12:00)
View GitHub Profile
@V2035
V2035 / .deps...npm....resolution-index.json
Created April 16, 2026 07:04
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=undefined&runs=200&gist=
{
"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": {
@V2035
V2035 / .deps...npm....resolution-index.json
Created April 16, 2026 06:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=undefined&runs=200&gist=
{
"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": {
@V2035
V2035 / voting_final.sol
Created April 16, 2026 03:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=undefined&runs=200&gist=
// 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;
}
@V2035
V2035 / .deps...npm....resolution-index.json
Created April 15, 2026 17:06
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.19+commit.7dd6d404.js&optimize=undefined&runs=200&gist=
{
"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": {