bitcoin-sv / sol2scrypt

Solidity to sCrypt Transplier
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Transpile: state-variable-declaration #22

Closed xhliu closed 2 years ago

xhliu commented 2 years ago

https://docs.soliditylang.org/en/v0.8.11/grammar.html#a4.SolidityParser.stateVariableDeclaration

uint storedData;

in

pragma solidity ^0.4.0;

contract SimpleStorage {
    uint storedData;

    function set(uint x) public {
        storedData = x;
    }

    function get() public view returns (uint) {
        return storedData;
    }
}
xhliu commented 2 years ago

Ignore initialization for now

uint storedData = 100;