Skip to content

Baby steps#1789

Closed
smoelius wants to merge 2 commits intohyperledger-solang:mainfrom
trail-of-forks:dev
Closed

Baby steps#1789
smoelius wants to merge 2 commits intohyperledger-solang:mainfrom
trail-of-forks:dev

Conversation

@smoelius
Copy link
Contributor

@smoelius smoelius commented May 8, 2025

The current changes allow me to compile the Solidity program below, and
the resulting wasm file passes cargo stylus --check.

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

contract Counter {
    uint256 public number;

    function setNumber(uint256 newNumber) public {
        number = newNumber;
    }

    function increment() public {
        number++;
    }
}

The current changes allow me to compile the Solidity program below, and
the resulting wasm file passes `cargo stylus --check`.

```sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

contract Counter {
    uint256 public number;

    function setNumber(uint256 newNumber) public {
        number = newNumber;
    }

    function increment() public {
        number++;
    }
}
```
@salaheldinsoliman
Copy link
Contributor

Why did you close that one?
Looks pretty interesting 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants