Skip to content

Instantly share code, notes, and snippets.

View zeeskhan1990's full-sized avatar

Zeeshan Khan zeeskhan1990

View GitHub Profile
@zeeskhan1990
zeeskhan1990 / AddFiveStorage.sol
Created July 24, 2023 12: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.18+commit.87f61d96.js&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity 0.8.19; //pragma solidtity ^0.8.18, pragma solidity >=0.8.18 <0.9.0
import {SimpleStorage} from "./SimpleStorage.sol";
contract AddFiveStorage is SimpleStorage {
function sayHello() public pure returns(string memory) {
return "Hello";
}
//To create an override, the main function should be virtual
function store(uint256 _newNumber) public override {
@zeeskhan1990
zeeskhan1990 / AddFiveStorage.sol
Created July 22, 2023 21:11
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=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity 0.8.19; //pragma solidtity ^0.8.18, pragma solidity >=0.8.18 <0.9.0
import {SimpleStorage} from "./SimpleStorage.sol";
contract AddFiveStorage is SimpleStorage {
function sayHello() public pure returns(string memory) {
return "Hello";
}
//To create an override, the main function should be virtual
function store(uint256 _newNumber) public override {
@zeeskhan1990
zeeskhan1990 / SimpleStorage.sol
Last active July 19, 2023 20:48
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=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity 0.8.19; //pragma solidtity ^0.8.18, pragma solidity >=0.8.18 <0.9.0
contract SimpleStorage {
//Basic types : boolean, uint, int, address, bytes, string
// public, private, internal, external. Default is internal.
//view, pure doesn't allow updating state, hence can be invoked without txn externally. only a "call"
uint256 myFavoriteNumber;
uint256[] listOfFavoriteNumbers;
@zeeskhan1990
zeeskhan1990 / cloudSettings
Last active December 1, 2020 04:41
My Vs-code all settings gist
{"lastUpload":"2020-12-01T04:41:06.706Z","extensionVersion":"v3.4.3"}