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
enum Network { RoninTestnetShadow, RoninTestnet } function chainId(Network network) pure returns (uint256) { if (network == Network.RoninTestnet) return 2021; if (network == Network.RoninTestnetShadow) return 2021; revert("Network: Unknown chain id"); }
Root cause:
NetworkConfig
block.chainid
mapping(uint256 chainId => TNetwork network) internal _networkMap;
The text was updated successfully, but these errors were encountered:
resolved in #144
Sorry, something went wrong.
No branches or pull requests
Description
Root cause:
NetworkConfig
,block.chainid
is treated as primary key.The text was updated successfully, but these errors were encountered: