Skip to content

Instantly share code, notes, and snippets.

@abhik-99
Created June 19, 2022 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhik-99/dab5e9cbe701ec53a7a705f0e1f4781b to your computer and use it in GitHub Desktop.
Save abhik-99/dab5e9cbe701ec53a7a705f0e1f4781b to your computer and use it in GitHub Desktop.
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.12+commit.f00d7308.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
contract Contract1 {
uint public constant c1 = 7894578;
uint public immutable i1;
uint public v1;
constructor(uint _i1, uint _v1){
i1=_i1;
v1=_v1;
}
// function setC1(uint _v) public {
// c1=_v;
// }
function setV1(uint _v) public {
v1=_v;
}
// function setI1(uint _v) public {
// i1=_v;
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment