Packages

Etherex is an Elixir high level library for the Ethereum blockchain based on the Ethereum Json RPC API

Current section

Files

Jump to
etherex priv solidity Store.sol
Raw

priv/solidity/Store.sol

// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
contract Store {
int public value;
constructor(int v) {
value = v;
}
event Set(int v);
function set(int v) public {
value = v;
emit Set(v);
}
function get() public view returns (int) {
return value;
}
}