mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-10 13:55:45 +00:00
9afdbd9848
Rename contract "Transactions" tab to "Log". Display and allow filtering of all contract methods. Disable debug button for pure/view functions and the constructor. Revise the filtering logic so that filters are combined together. Make the status filter a drop down menu like the others. Revise styling for consistent row height, alignment of text, and button sizes; use a monospaced font in some cases to achieve the effect. Handle enter/return correctly in forms within a contract's Interact tab. Remove event rows from a contract's Interact tab. Track pure/view calls in the blockchain proxy so they can be logged server-side by console listener and reported in Cockpit within a contract's Log tab. Eliminate double logging in the contracts manager. Ensure contracts deployed on a fresh `embark run` have an `address` / `deployedAddress` property.
18 lines
294 B
Solidity
18 lines
294 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
contract SimpleStorage {
|
|
uint public storedData;
|
|
|
|
constructor(uint initialValue) public {
|
|
storedData = initialValue;
|
|
}
|
|
|
|
function set(uint x) public {
|
|
storedData = x;
|
|
}
|
|
|
|
function get() public view returns (uint retVal) {
|
|
return storedData;
|
|
}
|
|
}
|