neo-devpack-solidity 0.22.0

Production-focused Solidity-to-NeoVM compilation system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

type Price is uint256;

contract UserDefinedTypeError {
    Price public currentPrice;

    function setPrice(uint256 _price) public {
        currentPrice = Price.wrap(_price);
    }
}