This file contains 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.23; | |
contract TestArrayInDifferentSituations { | |
// function testMemory(uint[] memory array,uint[] memory array2) pure external returns (uint[] memory result){ | |
// return array; | |
// } |
This file contains 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: GPL-3.0 | |
pragma solidity ^0.8.17; | |
contract StorageArrayTest { | |
uint256[] bigArray; | |
// the bigArray's slot store the length of the bigArray. The initial value is zero. Firstly, the default value is zero. | |
function testFixedArrayLength() external view returns(uint) { | |
return bigArray.length; |
This file contains 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 | |
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to |
This file contains 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
ref: refs/heads/main |
This file contains 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
ref: refs/heads/main |
This file contains 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
https://press.one/p/address/v?s=2c58405d4aa2b16f8096a60b864a5fb51aadfadbb661990c077fb9a7ce028edd02bda4bc7d38d7c1937ee059c01b67a0c2c7244ba83727077bfeef182196676c0&h=d64c6dea38a6e90d3a9066c57ed4cf0a3e9801ec69c95d72fc7598c2c73cbb52&a=d274baf1720adfb3f8a880e3247c1e6dafb9c8ee&f=P1&v=2 |
This file contains 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
{"sig":"c111607a388251b96981752a5e65101a84ee0c286b4362b2d64b0ceda4d94e81819a77a0a6eb2401dabde02369d3a1b221879ed4519e266f159c0daaf7758d981","msghash":"adc89f1de0ca7c07c862e87471cc49bd3f45603b1e7c31c2c66ffbd84deb3659"} |