Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
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
Loading