Skip to content

Commit

Permalink
Merge pull request #421 from dapphub/solc-0.6.7
Browse files Browse the repository at this point in the history
dapp: 0.28.0
  • Loading branch information
asymmetric authored Jul 13, 2020
2 parents d6d8432 + 8e00922 commit aa6b720
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ in rec {
fetchSolcVersions { owner = "NixOS"; attr = super.system; }
//
fetchSolcVersions { owner = "dapphub"; attr = "unreleased"; };
solc = solc-versions.solc_0_5_15;
solc = solc-versions.solc_0_6_7;

hevm = self.pkgs.haskell.lib.justStaticExecutables self.haskellPackages.hevm;

Expand Down
4 changes: 2 additions & 2 deletions src/dapp-tests/src/constantinople.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.2;
pragma solidity ^0.6.7;

import "ds-test/test.sol";

Expand Down Expand Up @@ -102,7 +102,7 @@ contract ConstantinopleTests is DSTest {
let top := mload(0x40)
mstore(top, sload(deadcode_slot))
let inithash := keccak256(top, 13)
mstore(sub(top, 11), address)
mstore(sub(top, 11), address())
mstore8(top, 0xff)
mstore(add(top, 21), salt)
mstore(add(top, 53), inithash)
Expand Down
5 changes: 4 additions & 1 deletion src/dapp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.28.0] - 2020-07-13
### Added
- Support for solc 0.6.7

### Changed
- Default to solc 0.6.7

### Removed
- Support for git submodules (setzer, dai-cli, chief, terra)
- `dapp pkg` functionality - dapptools is now installed and upgraded as a Nix
Expand Down
2 changes: 1 addition & 1 deletion src/dapp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

stdenv.mkDerivation rec {
name = "dapp-${version}";
version = "0.27.0";
version = "0.28.0";
src = ./.;

nativeBuildInputs = [makeWrapper shellcheck coreutils nodejs];
Expand Down
2 changes: 1 addition & 1 deletion src/dapp/libexec/dapp/dapp---version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
echo dapp 0.27.0
echo dapp 0.28.0
solc --version
echo "hevm $(hevm version)"
4 changes: 2 additions & 2 deletions src/hevm/src/EVM/Solidity.hs
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ toCode = fst . BS16.decode . encodeUtf8
solidity' :: Text -> IO (Text, Text)
solidity' src = withSystemTempFile "hevm.sol" $ \path handle -> do
hClose handle
writeFile path ("pragma solidity ^0.5.2;\n" <> src)
writeFile path ("pragma solidity ^0.6.7;\n" <> src)
x <- pack <$>
readProcess
"solc"
["--combined-json=bin-runtime,bin,srcmap,srcmap-runtime,abi,ast", path]
["--combined-json=bin-runtime,bin,srcmap,srcmap-runtime,abi,ast,storage-layout", path]
""
return (x, pack path)

Expand Down

0 comments on commit aa6b720

Please sign in to comment.