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.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` | |
*/ |
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.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 |