diff --git a/.circleci/config.yml b/.circleci/config.yml index c8d80888..8b5d1a8f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,16 @@ version: 2.1 -# https://medium.com/@edouard.oger/rust-caching-on-circleci-using-sccache-c996344f0115 commands: + setup-lints: + steps: + - run: + name: Install cargo-audit + command: cargo install cargo-audit + - run: + name: Install clippy + command: rustup component add clippy + + # https://medium.com/@edouard.oger/rust-caching-on-circleci-using-sccache-c996344f0115 setup-sccache: steps: - run: @@ -37,6 +46,7 @@ jobs: - image: circleci/rust:latest steps: - checkout + - setup-lints - setup-sccache - restore-sccache-cache - run: cargo test --all diff --git a/contract.sol b/contract.sol deleted file mode 100644 index e375ba81..00000000 --- a/contract.sol +++ /dev/null @@ -1,22 +0,0 @@ -pragma solidity ^0.6.6; - -contract SimpleStorage { - - event ValueChanged(address indexed author, string oldValue, string newValue); - - string _value; - - constructor(string memory value) public { - emit ValueChanged(msg.sender, _value, value); - _value = value; - } - - function getValue() view public returns (string memory) { - return _value; - } - - function setValue(string memory value) public { - emit ValueChanged(msg.sender, _value, value); - _value = value; - } -}