current position:Home>Why is this displayed after I deploy Ethernet

Why is this displayed after I deploy Ethernet

2022-02-03 20:58:05 Q & A of Denglian community

pragma solidity ^0.4.0;contract TestAddr {    constructor() public payable {    }    //  Get the balance of an account , Pay attention to replacing the address with your own account address     function testBlance() public constant returns (uint) {        address a = 0x5fC754A1640873b6E75d3e8763788Efb5E54f136;        return a.balance;  // wei   1eth = 10e18wei    }    //  See contract address balance , When creating an account, attach an ether coin     function testSelfBlance() public constant returns (uint) {        address a = this;        return a.balance;    }}

Here is deploy Result QQ20200420204508.jpg






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032058027050.html

Random recommended