Skip to content

Instantly share code, notes, and snippets.

@sodexx7
sodexx7 / contracts...TestArrayInDifferentSituations.sol
Created December 2, 2023 08: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=builtin&optimize=false&runs=200&gist=
// 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;
// }
@sodexx7
sodexx7 / contracts...StorageArrayTest.sol
Created November 23, 2023 09:46
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: 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;
@sodexx7
sodexx7 / .deps...github...OpenZeppelin...openzeppelin-contracts...contracts...access...Ownable.sol
Created October 17, 2023 07:46
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.9+commit.e5eed63a.js&optimize=false&runs=200&gist=
// 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
@sodexx7
sodexx7 / .git...HEAD
Created March 29, 2023 10:52
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=
ref: refs/heads/main
@sodexx7
sodexx7 / .git...HEAD
Created March 29, 2023 10:50
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=
ref: refs/heads/main
https://press.one/p/address/v?s=2c58405d4aa2b16f8096a60b864a5fb51aadfadbb661990c077fb9a7ce028edd02bda4bc7d38d7c1937ee059c01b67a0c2c7244ba83727077bfeef182196676c0&h=d64c6dea38a6e90d3a9066c57ed4cf0a3e9801ec69c95d72fc7598c2c73cbb52&a=d274baf1720adfb3f8a880e3247c1e6dafb9c8ee&f=P1&v=2
{"sig":"c111607a388251b96981752a5e65101a84ee0c286b4362b2d64b0ceda4d94e81819a77a0a6eb2401dabde02369d3a1b221879ed4519e266f159c0daaf7758d981","msghash":"adc89f1de0ca7c07c862e87471cc49bd3f45603b1e7c31c2c66ffbd84deb3659"}