We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ChainId implementation for Massa
ChainId idea comes from Etherum (and was required to separate the network between Ethereum & Ethereum Classic)
Example code from Umbrella:
function update( bytes32[] calldata _priceKeys, PriceData[] calldata _priceDatas, Signature[] calldata _signatures ) external { if (_priceKeys.length != _priceDatas.length) revert ArraysDataDoNotMatch(); bytes32 priceDataHash = keccak256(abi.encode(getChainId(), address(this), _priceKeys, _priceDatas)); verifySignatures(priceDataHash, _signatures); ... } function getChainId() public view returns (uint256 id) { // solhint-disable-next-line no-inline-assembly assembly { id := chainid() } }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Intro
ChainId implementation for Massa
Documentation
ChainId idea comes from Etherum (and was required to separate the network between Ethereum & Ethereum Classic)
Ethereum ChainId
Example code from Umbrella:
Implementation
Remaining questions
The text was updated successfully, but these errors were encountered: