Gate Layer is live! View your transactions on  Gate Layer Explorer .
gate
GT Price:$10.69-2.37%
Med Gas Fee:12.14 NANOGT
Account Details
Contract0x1db13286fafa73456aceb4038d0d628cc6d32844

Overview

GT Balance

0 GT($0)

Token Holdings

0 Tokens

More Info

Contract Creator

Contract Source Code Verified (Exact Match)
Contract Name
Storage
Optimization

Yes, with

200

runs

Compiler
solidity
Compiler Version
v0.8.20+commit.a1b79de6.js
Other Settings

istanbul

evmVersion

MIT

License

</> Contract source code
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.2 <0.9.0;

/**
 * @title Storage
 * @dev Store & retrieve value in a variable
 * @custom:dev-run-script ./scripts/deploy_with_ethers.ts
 */
contract Storage {

    uint256 number;

    /**
     * @dev Store value in variable
     * @param num value to store
     */
    function store(uint256 num) public {
        number = num;
    }

    /**
     * @dev Return value 
     * @return value of 'number'
     */
    function retrieve() public view returns (uint256){
        return number;
    }
}
</> Contract Creation Bytecode
0x6080604052348015600f57600080fd5b5060ac8061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d14604c575b600080fd5b60005460405190815260200160405180910390f35b605c6057366004605e565b600055565b005b600060208284031215606f57600080fd5b503591905056fea26469706673582212207ec90fed80104e88bc5f79a2c39e2957338ae41f16c5525db4719f06efbcc90564736f6c63430008140033
</> Contract ABI
[{"inputs":[],"name":"retrieve","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"store","outputs":[],"stateMutability":"nonpayable","type":"function"}]
</> Contract Deployment Bytecode
0x6080604052348015600f57600080fd5b506004361060325760003560e01c80632e64cec11460375780636057361d14604c575b600080fd5b60005460405190815260200160405180910390f35b605c6057366004605e565b600055565b005b600060208284031215606f57600080fd5b503591905056fea26469706673582212207ec90fed80104e88bc5f79a2c39e2957338ae41f16c5525db4719f06efbcc90564736f6c63430008140033
logo
GateScan is a Block Explorer and Analytics Platform for GateChain