Skip to content

Commit

Permalink
chore: update node and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Jan 9, 2025
1 parent 6d1b107 commit 7d9ee96
Show file tree
Hide file tree
Showing 9 changed files with 4,112 additions and 2,322 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4.1.0
with:
node-version: 20
node-version: 22

- name: Setup Cache
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.2
id: cache
with:
path: '**/node_modules'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4.2.2

- name: Setup Environment
uses: ./.github/actions/setup
Expand All @@ -32,7 +32,7 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4.2.2

- name: Setup Environment
uses: ./.github/actions/setup
Expand All @@ -50,7 +50,7 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4.2.2

- name: Setup Environment
uses: ./.github/actions/setup
Expand All @@ -59,7 +59,7 @@ jobs:
run: npm run coverage

- name: Post to Codecov
uses: codecov/codecov-action@v4.3.1
uses: codecov/codecov-action@v5.0.7
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -70,15 +70,15 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4.2.2

- name: Setup Environment
uses: ./.github/actions/setup

- name: Run Slither
uses: crytic/[email protected]
with:
node-version: 20
node-version: 22

codespell:
name: Codespell
Expand All @@ -87,10 +87,10 @@ jobs:
FORCE_COLOR: 1
steps:
- name: Setup Code
uses: actions/checkout@v4.1.4
uses: actions/checkout@v4.2.2

- name: Run CodeSpell
uses: codespell-project/actions-codespell@v2.0
uses: codespell-project/actions-codespell@v2.1
with:
check_hidden: true
check_filenames: true
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
2 changes: 1 addition & 1 deletion analysis/description-table/ERC1363.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| File Name | SHA-1 Hash |
|-------------|--------------|
| dist/ERC1363.dist.sol | 0d45339c4a3577a10f190dc01be176ff384221f7 |
| dist/ERC1363.dist.sol | 81e185ee2dbca6af3ff78db8dd5d0e4aa8eb5072 |


### Contracts Description Table
Expand Down
2 changes: 1 addition & 1 deletion analysis/description-table/ERC1363Mintable.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| File Name | SHA-1 Hash |
|-------------|--------------|
| dist/ERC1363Mintable.dist.sol | 06babee9bdb29926f8151f7754e0d5e50a0fd5bd |
| dist/ERC1363Mintable.dist.sol | 180cc5116a8700790c124b5ab4c97f377dd28f85 |


### Contracts Description Table
Expand Down
20 changes: 10 additions & 10 deletions dist/ERC1363.dist.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.22.13 https://hardhat.org
// Sources flattened with hardhat v2.22.17 https://hardhat.org



// File @openzeppelin/contracts/interfaces/draft-IERC6093.sol@v5.1.0
// File @openzeppelin/contracts/interfaces/draft-IERC6093.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
Expand Down Expand Up @@ -169,7 +169,7 @@ interface IERC1155Errors {
}


// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v5.1.0
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
Expand Down Expand Up @@ -252,7 +252,7 @@ interface IERC20 {
}


// File @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol@v5.1.0
// File @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
Expand Down Expand Up @@ -280,7 +280,7 @@ interface IERC20Metadata is IERC20 {
}


// File @openzeppelin/contracts/utils/Context.sol@v5.1.0
// File @openzeppelin/contracts/utils/Context.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
Expand Down Expand Up @@ -312,10 +312,10 @@ abstract contract Context {
}


// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v5.1.0
// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

Expand Down Expand Up @@ -614,7 +614,7 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
Expand All @@ -626,7 +626,7 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
}


// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v5.1.0
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
Expand Down Expand Up @@ -655,7 +655,7 @@ interface IERC165 {
}


// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v5.1.0
// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
Expand Down
20 changes: 10 additions & 10 deletions dist/ERC1363Mintable.dist.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// SPDX-License-Identifier: MIT

// Sources flattened with hardhat v2.22.13 https://hardhat.org
// Sources flattened with hardhat v2.22.17 https://hardhat.org



// File @openzeppelin/contracts/interfaces/draft-IERC6093.sol@v5.1.0
// File @openzeppelin/contracts/interfaces/draft-IERC6093.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
Expand Down Expand Up @@ -169,7 +169,7 @@ interface IERC1155Errors {
}


// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v5.1.0
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
Expand Down Expand Up @@ -252,7 +252,7 @@ interface IERC20 {
}


// File @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol@v5.1.0
// File @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)
Expand Down Expand Up @@ -280,7 +280,7 @@ interface IERC20Metadata is IERC20 {
}


// File @openzeppelin/contracts/utils/Context.sol@v5.1.0
// File @openzeppelin/contracts/utils/Context.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
Expand Down Expand Up @@ -312,10 +312,10 @@ abstract contract Context {
}


// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v5.1.0
// File @openzeppelin/contracts/token/ERC20/ERC20.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol)
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

Expand Down Expand Up @@ -614,7 +614,7 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
Expand All @@ -626,7 +626,7 @@ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
}


// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v5.1.0
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
Expand Down Expand Up @@ -655,7 +655,7 @@ interface IERC165 {
}


// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v5.1.0
// File @openzeppelin/contracts/utils/introspection/ERC165.sol@v5.2.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
Expand Down
Loading

0 comments on commit 7d9ee96

Please sign in to comment.