Skip to content

Instantly share code, notes, and snippets.

View theishu4's full-sized avatar
🎯
Focusing

Ishu Modanwal theishu4

🎯
Focusing
View GitHub Profile
@theishu4
theishu4 / FundMe...PriceConverter.sol
Created December 26, 2024 16:01
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.24+commit.e11b9ed9.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
library PriceConverter {
/**
* Library doesn't have state variable.
* Library can't send ether.
* Library function can only have visibility `internal`
*/
@theishu4
theishu4 / contracts...AddFiveStorage.sol
Created December 24, 2024 22:05
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.24+commit.e11b9ed9.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
import {SimpleStorage} from "./SimpleStorage.sol";
contract AddFiveStorage is SimpleStorage {
function sayBye() public pure returns (string memory) {
return "Bye Ishu, Nice to meet you!";
}
// Overriding updateFavouriteNumber method