external means Cannot be accessed internally, only externally

by mdvenkatesh nuhk   Last Updated June 12, 2019 20:28 PM

pragma solidity ^0.5.7;

contract Test {
    function test() public view  returns (uint){
         return 10*10;
    }

    function test2() external view  returns (uint){
         return 10*2;
    }
}

but in o/p i can call these function i taught externally means we canot call inside the class can any one explain these is my output which i can see

 status     0x1 Transaction mined and execution succeed
 transaction hash   0x0e3c9b7c67387cdcf3a4d2001323e83b20f64dbe12abb6e81700ccc6cc844454
 from   0xca35b7d915458ef540ade6068dfe2f44e8fa733c
 to     Test.test2() 0x0dcd2f752394c41875e259e00bb44fd505297caf
 gas    3000000 gas

 transaction cost   21463 gas 
 execution cost     191 gas 
 hash   0x0e3c9b7c67387cdcf3a4d2001323e83b20f64dbe12abb6e81700ccc6cc844454
 input  0x66e...41cb7
 decoded input  {}
 decoded output     {
    "0": "uint256: 20"
}
 logs   []
 value 

0 wei
Tags : solidity remix


Related Questions


Updated January 10, 2019 23:28 PM

Updated January 02, 2019 03:28 AM

Updated May 20, 2019 06:28 AM

Updated July 06, 2017 09:28 AM