mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			289 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			289 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function f() pure external returns (uint id) {
 | 
						|
        assembly {
 | 
						|
            id := chainid()
 | 
						|
        }
 | 
						|
    }
 | 
						|
    function g() view external returns (uint sb) {
 | 
						|
        assembly {
 | 
						|
            sb := selfbalance()
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// EVMVersion: >=istanbul
 | 
						|
// ----
 |