Skip to content

Commit

Permalink
fix: solidity .8.28 and optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Nov 26, 2024
1 parent ff47952 commit 147454b
Show file tree
Hide file tree
Showing 12 changed files with 226 additions and 638 deletions.
2 changes: 1 addition & 1 deletion ethereum/contracts/Deferred.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity ^0.8.28;

import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion ethereum/contracts/Ekoke.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity ^0.8.28;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion ethereum/contracts/Marketplace.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity ^0.8.28;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
Expand Down
2 changes: 1 addition & 1 deletion ethereum/contracts/RewardPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity ^0.8.28;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
Expand Down
10 changes: 9 additions & 1 deletion ethereum/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ const {
} = process.env;

const config: HardhatUserConfig = {
solidity: "0.8.20",
solidity: {
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
sourcify: {
enabled: true,
},
Expand Down
2 changes: 1 addition & 1 deletion ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"commander": "^12.1.0",
"dotenv": "^16.3.1",
"ethers": "^6",
"hardhat": "^2.19.4",
"hardhat": "^2",
"hardhat-gas-reporter": "^2",
"solidity-coverage": "^0.8.5",
"ts-node": "^10.9.2",
Expand Down
807 changes: 203 additions & 604 deletions ethereum/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions integration-tests/src/abi/Deferred.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions integration-tests/src/abi/Ekoke.json

Large diffs are not rendered by default.

23 changes: 2 additions & 21 deletions integration-tests/src/abi/Marketplace.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions integration-tests/src/abi/RewardPool.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration-tests/tests/pocket_ic/get_eth_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ async fn test_should_get_eth_address() {
.await
.expect("Failed to get eth address");

println!("Eth address: {:?}", address);
println!("Minter address: {:?}", address);
assert_ne!(address, H160::zero());
}

0 comments on commit 147454b

Please sign in to comment.