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

Commit 3e456c5

Browse files
authored
Merge pull request #200 from ConsenSys/SolcFixes
Solc fixes
2 parents fe53ea6 + 6b9a0f0 commit 3e456c5

File tree

17 files changed

+877
-1788
lines changed

17 files changed

+877
-1788
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ RUN apk add nodejs
1616
# survive image upgrades
1717
VOLUME /cakeshop/data
1818

19-
WORKDIR /cakeshop
20-
2119
COPY --from=builder /home/cakeshop/cakeshop-api/target/cakeshop*.war /cakeshop/cakeshop.war
2220

2321
# for main web interface
2422
EXPOSE 8080
2523

26-
ENTRYPOINT ["java", "-jar", "/cakeshop/cakeshop.war"]
24+
ENTRYPOINT ["java", "-Dcakeshop.config.dir=/cakeshop/data", "-Dspring.config.additional-location=file:/cakeshop/data/local/", "-jar", "/cakeshop/cakeshop.war"]

cakeshop-api/src/main/resources/bin/solc-cli/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cakeshop-api/src/main/resources/bin/solc-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"author": "",
66
"license": "Apache2",
77
"dependencies": {
8-
"solc-cakeshop-cli": "0.5.0"
8+
"solc-cakeshop-cli": "0.5.1"
99
}
1010
}

cakeshop-api/src/main/resources/contracts/SimpleStorage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
pragma solidity ^0.6.6;
1+
pragma solidity ^0.8.0;
22
contract SimpleStorage {
33

44
uint public storedData;
55

66
event Change(string message, uint newVal);
77

8-
constructor(uint initVal) public {
8+
constructor(uint initVal) {
99
emit Change("initialized", initVal);
1010
storedData = initVal;
1111
}

cakeshop-api/src/main/webapp/js/sandbox/contracts/Ballot.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pragma solidity ^0.6.6;
1+
pragma solidity ^0.8.0;
22

33
/// @title Voting with delegation.
44
contract Ballot {
@@ -28,7 +28,7 @@ contract Ballot {
2828
Proposal[] public proposals;
2929

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

cakeshop-api/src/main/webapp/js/sandbox/contracts/Greeter.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
pragma solidity ^0.6.6;
1+
pragma solidity ^0.8.0;
22
contract Mortal {
33
/* Define variable owner of the type address*/
44
address payable owner;
55

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

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

2020
/* this runs when the contract is executed */
21-
constructor (string memory _greeting) public {
21+
constructor (string memory _greeting) {
2222
greeting = _greeting;
2323
}
2424

cakeshop-api/src/main/webapp/js/sandbox/contracts/SimpleStorage.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
pragma solidity ^0.6.6;
1+
pragma solidity ^0.8.0;
22
contract SimpleStorage {
33

4-
uint storedData;
4+
uint public storedData;
55

66
event Change(string message, uint newVal);
77

8-
constructor(uint initVal) public {
8+
constructor(uint initVal) {
99
emit Change("initialized", initVal);
1010
storedData = initVal;
1111
}

cakeshop-api/src/main/webapp/js/sandbox/tx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ import utils from '../utils'
483483
$(".papertape .panel-body").empty();
484484
});
485485

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

0 commit comments

Comments
 (0)