|
|
|
@ -385,7 +385,7 @@ module.exports = { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function resolveENS() view { |
|
|
|
|
// Same address for Mainet, Ropsten, Rinkerby, Gorli and other networks;
|
|
|
|
|
// Same address for Mainnet, Ropsten, Rinkerby, Gorli and other networks;
|
|
|
|
|
ENS ens = ENS(0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e); |
|
|
|
|
(,bytes32 node) = NameEncoder.dnsEncodeName("vitalik.eth"); |
|
|
|
|
Resolver resolver = ens.resolver(node); |
|
|
|
@ -602,14 +602,14 @@ library Lib { |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* @title Storage |
|
|
|
|
* @dev Store & retrieve value inr a variable |
|
|
|
|
* @dev Store & retrieve value in a variable |
|
|
|
|
*/ |
|
|
|
|
contract StorageWithLib { |
|
|
|
|
|
|
|
|
|
uint256 number; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Store valrue in variable |
|
|
|
|
* @dev Store value in variable |
|
|
|
|
* @param num value to store |
|
|
|
|
*/ |
|
|
|
|
function store(uint256 num) public { |
|
|
|
@ -750,7 +750,7 @@ const scriptAutoExec = { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @title Storage |
|
|
|
|
* @dev Store & retrieve value inr a variable |
|
|
|
|
* @dev Store & retrieve value in a variable |
|
|
|
|
* @custom:dev-run-script ./scripts/deploy_storage.js |
|
|
|
|
*/ |
|
|
|
|
contract Storage { |
|
|
|
@ -758,7 +758,7 @@ const scriptAutoExec = { |
|
|
|
|
uint256 number; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @dev Store valrue in variable |
|
|
|
|
* @dev Store value in variable |
|
|
|
|
* @param num value to store |
|
|
|
|
*/ |
|
|
|
|
function store(uint256 num) public { |
|
|
|
|