gasCost of opcode “STATICCALL” in Geth VM Trace

{ “pc”: 4765, “op”: “STATICCALL”, “gas”: 222711, “gasCost”: 219243, “depth”: 1, … } As above, Geth VM Trace (https://etherscan.io/vmtrace?txhash=0x457c267f3acea528fdf0159a05d0794270a858fed9ad71b96d6ad66b44975eec) shows that gas cost of “STATICCALL” is 219243, which seems impossible because it’s even larger than the entire gas consumption of the transaction. So, how to interpret this?

Details

TypeError: balance.toNumber is not a function

I need check that token has no balance when selfDestruct was called, but shows an error that balance.toNumber is not a function in the test file. DappTokenSale.sol function endSale() public { //Require Admin (Only Admin can end the Sale) require(msg.sender == admin); //Transfer remaining dapp tokens to admin require(tokenContract.transfer(admin, tokenContract.balanceOf((address(this))))); // Destroy contract at the…

Details

postgresql srvice is not starting

[email protected]:~/Desktop/TheFatRat# sudo service postgresql start Starting PostgreSQL 11 database server: mainError: /usr/lib/postgresql/11/bin/pg_ctl /usr/lib/postgresql/11/bin/pg_ctl start -D /var/lib/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log -s -o -c config_file=”/etc/postgresql/11/main/postgresql.conf” exited with status 1: 2019-12-23 06:34:28.679 UTC [1207] LOG: listening on IPv6 address “::1”, port 5432 2019-12-23 06:34:28.679 UTC [1207] LOG: listening on IPv4 address “127.0.0.1”, port 5432 2019-12-23 06:34:28.708 UTC [1207] LOG:…

Details