-
Notifications
You must be signed in to change notification settings - Fork 61
Executing Contracts
Wei Tang edited this page Jun 26, 2017
·
2 revisions
- ensure you have
solc
installed. Onnixos
you typenix-env -i solc
to install the solidity compiler. - write a simple contract or use the accompanying
SimpleStorage.sol
contract.
pragma solidity ^0.4.0;
contract SimpleStorage {
uint storedData;
function set(uint x) {
storedData = x;
}
function get() constant returns (uint) {
return storedData;
}
}
- execute
solc --bin -o SimpleStorage SimpleStorage.sol
- then run these commands:
cd SimpleStorage
../../../target/debug/gaslighter cli -c SimpleStorage.bin
Voilà, that was your first hello world using SputnikVM.