Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #200 from ConsenSys/SolcFixes
Browse files Browse the repository at this point in the history
Solc fixes
  • Loading branch information
bmcd authored Feb 24, 2021
2 parents fe53ea6 + 6b9a0f0 commit 3e456c5
Show file tree
Hide file tree
Showing 17 changed files with 877 additions and 1,788 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@ RUN apk add nodejs
# survive image upgrades
VOLUME /cakeshop/data

WORKDIR /cakeshop

COPY --from=builder /home/cakeshop/cakeshop-api/target/cakeshop*.war /cakeshop/cakeshop.war

# for main web interface
EXPOSE 8080

ENTRYPOINT ["java", "-jar", "/cakeshop/cakeshop.war"]
ENTRYPOINT ["java", "-Dcakeshop.config.dir=/cakeshop/data", "-Dspring.config.additional-location=file:/cakeshop/data/local/", "-jar", "/cakeshop/cakeshop.war"]
14 changes: 7 additions & 7 deletions cakeshop-api/src/main/resources/bin/solc-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cakeshop-api/src/main/resources/bin/solc-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"author": "",
"license": "Apache2",
"dependencies": {
"solc-cakeshop-cli": "0.5.0"
"solc-cakeshop-cli": "0.5.1"
}
}
4 changes: 2 additions & 2 deletions cakeshop-api/src/main/resources/contracts/SimpleStorage.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pragma solidity ^0.6.6;
pragma solidity ^0.8.0;
contract SimpleStorage {

uint public storedData;

event Change(string message, uint newVal);

constructor(uint initVal) public {
constructor(uint initVal) {
emit Change("initialized", initVal);
storedData = initVal;
}
Expand Down
4 changes: 2 additions & 2 deletions cakeshop-api/src/main/webapp/js/sandbox/contracts/Ballot.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.6.6;
pragma solidity ^0.8.0;

/// @title Voting with delegation.
contract Ballot {
Expand Down Expand Up @@ -28,7 +28,7 @@ contract Ballot {
Proposal[] public proposals;

/// Create a new ballot to choose one of `proposalNames`.
constructor(bytes32[] memory proposalNames) public {
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;

Expand Down
6 changes: 3 additions & 3 deletions cakeshop-api/src/main/webapp/js/sandbox/contracts/Greeter.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pragma solidity ^0.6.6;
pragma solidity ^0.8.0;
contract Mortal {
/* Define variable owner of the type address*/
address payable owner;

/* this function is executed at initialization and sets the owner of the contract */
constructor() public { owner = msg.sender; }
constructor() { owner = msg.sender; }

/* Function to recover the funds on the contract */
function kill() public {
Expand All @@ -18,7 +18,7 @@ contract Greeter is Mortal {
string greeting;

/* this runs when the contract is executed */
constructor (string memory _greeting) public {
constructor (string memory _greeting) {
greeting = _greeting;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pragma solidity ^0.6.6;
pragma solidity ^0.8.0;
contract SimpleStorage {

uint storedData;
uint public storedData;

event Change(string message, uint newVal);

constructor(uint initVal) public {
constructor(uint initVal) {
emit Change("initialized", initVal);
storedData = initVal;
}
Expand Down
4 changes: 2 additions & 2 deletions cakeshop-api/src/main/webapp/js/sandbox/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ import utils from '../utils'
$(".papertape .panel-body").empty();
});

// from https://ethereum.github.io/solc-bin/bin/list.json
setSolidityOptions(releases, 'v0.6.12+commit.27d51765')
// from http://binaries.soliditylang.org/bin/list.json
setSolidityOptions(releases, 'v0.8.1+commit.df193b15')
shrinkify(".select_contract");
shrinkify(".state");
shrinkify(".papertape");
Expand Down
Loading

0 comments on commit 3e456c5

Please sign in to comment.