Skip to content

Commit

Permalink
build(deps-dev): Bump @hashgraph/hedera-local from 2.32.6 to 2.33.0 (#…
Browse files Browse the repository at this point in the history
…1181)

* build(deps-dev): Bump @hashgraph/hedera-local from 2.32.6 to 2.33.0

Bumps [@hashgraph/hedera-local](https://github.com/hashgraph/hedera-local-node) from 2.32.6 to 2.33.0.
- [Release notes](https://github.com/hashgraph/hedera-local-node/releases)
- [Changelog](https://github.com/hiero-ledger/hiero-local-node/blob/main/release.config.js)
- [Commits](hiero-ledger/hiero-local-node@v2.32.6...v2.33.0)

---
updated-dependencies:
- dependency-name: "@hashgraph/hedera-local"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: add gas limit to failing transactions with insufficient gas

Signed-off-by: Nadezhda Popova <[email protected]>

* fixup! fix: add gas limit to failing transactions with insufficient gas

Signed-off-by: Nadezhda Popova <[email protected]>

* fixup! fixup! fix: add gas limit to failing transactions with insufficient gas

Signed-off-by: Nadezhda Popova <[email protected]>

* fixup! fixup! fixup! fix: add gas limit to failing transactions with insufficient gas

Signed-off-by: Nadezhda Popova <[email protected]>

* fixup! fixup! fixup! fixup! fix: add gas limit to failing transactions with insufficient gas

Signed-off-by: Nadezhda Popova <[email protected]>

* fixup! fixup! fixup! fixup! fixup! fix: add gas limit to failing transactions with insufficient gas

Signed-off-by: Nadezhda Popova <[email protected]>

* fix: modified ERC20VotesTest() to use block.timestamp instead of block.number

Signed-off-by: Logan Nguyen <[email protected]>

* chore: updated todo comment

Signed-off-by: Logan Nguyen <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Nadezhda Popova <[email protected]>
Signed-off-by: Logan Nguyen <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nadezhda Popova <[email protected]>
Co-authored-by: Logan Nguyen <[email protected]>
  • Loading branch information
3 people authored Jan 24, 2025
1 parent 88472c9 commit fbb3cc8
Show file tree
Hide file tree
Showing 5 changed files with 1,678 additions and 625 deletions.
23 changes: 23 additions & 0 deletions contracts/openzeppelin/ERC-20-votes/erc20VotesTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,27 @@ contract ERC20VotesTest is ERC20, ERC20Permit, ERC20Votes {
{
return super.nonces(owner);
}

/// @notice Returns the current consensus timestamp
/// @dev Overrides the default block number-based implementation to use timestamps instead
/// @dev This modification is specific to Hedera's architecture where:
/// @dev - block.number refers to record file indices which don't reflect transaction timing
/// @dev - block.timestamp provides the actual consensus timestamp when the transaction executed
/// @return The current consensus timestamp as a uint48
function clock() public view override returns (uint48) {
return uint48(block.timestamp);
}

/// @notice Returns a machine-readable description of the timestamp-based clock implementation
/// @dev Overrides the default implementation to reflect the use of timestamps instead of block numbers
/// @return A string describing the clock mode configuration
// solhint-disable-next-line func-name-mixedcase
function CLOCK_MODE() public view override returns (string memory) {
// Check that the clock was not modified
if (clock() != block.timestamp) {
revert ERC6372InconsistentClock();
}
return "mode=blocknumber&from=default";
}

}
14 changes: 7 additions & 7 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"freeze-network-node": "hardhat run scripts/freeze-network-node.js"
},
"devDependencies": {
"@hashgraph/hedera-local": "^2.32.6",
"@hashgraph/hedera-local": "^2.33.0",
"@hashgraph/sdk": "^2.56.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.8",
"@nomicfoundation/hardhat-foundry": "^1.1.3",
Expand Down
Loading

0 comments on commit fbb3cc8

Please sign in to comment.