19a7b4d3eb
13 lines
209 B
Solidity
13 lines
209 B
Solidity
pragma solidity >0.5.0;
|
|||
|
|||
contract TestChainID {
|
|||
function currentChainID() public view returns (uint) {
|
|||
uint id;
|
|||
assembly {
|
|||
id := chainid()
|
|||
}
|
|||
return id;
|
|||
}
|
|||
}
|
|||
|