Remix ETH doesn't show public variables when contract is deployed - ethereum

I'm trying to see the public variables in Remix's IDE and I don't see them after I hit deploy:

Related

Token doesn't want to deploy to a blockchain

I have created and compiled a smart contract and created my deploy token file as well. When I run ganache-cli on one terminal it gives me '''eth_getTransactionByHash''' and while the brownie run scripts is running on the other terminal it says '''awaiting transaction from mempool'''
I logged into my MetaMask account as well and created a new Account with the RPC and chain ID provided.
Please help.
I had the same issue when running ganache-cli. I fixed it by passing some parameters
ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie

How to run Spring Boot Application without manual activation?

I have this web application that heavily relies on API endpoints for its functionality. When I try opening the HTML file that displays the login/registration page and attempts to log in a returning user or register for a new account, this error is shown:
POST http://localhost:8080/Login net::ERR_CONNECTION_REFUSED
The application will only work if the spring boot application is running in IntelliJ:
#SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
Is there a way for my web application to properly connect with the API, without manually having to run the code shown above every time in IntelliJ?

Ethereum sidechains

I have just started learning blockchain development
I have created an ethereum sidechain, which is running on docker containers in my local machine.
I have previously used solidity to write smart contracts and deploy them on the testnet using truffle, or by getting the provider from infura.
Note: wherein each container acts as a node.
But how do I do the same thing for my private chain?
You need to configure truffle to point to your testnet. The truffle config docs describe how to do this in detail. Essentially you want to put the following in your truffle.js file:
networks: {
test: {
host: "<ip address of one of your docker containers>",
port: <port number your container is listening on>,
network_id: "*" // match any network id
}
}

Ethereum deployed contract not defined in Geth Javascript console

I cannot access a deployed and mined Ethereum contract on a private network from the Geth Javascript console. Not sure where the issue is, any help is appreciated.
Thank you in advance for your time.
Scenario
I launched my Geth as below
geth --datadir ~/.ethereum/myProject --networkid 1234 --rpc --rpcport 8546 --rpcapi "eth,net,web3" --unlock 0 console
I've deployed and mined an Ethereum contract (to simplify things, I've used the default MetaCoin contract provided by Truffle), and I got the trx and contract address back.
I can access it from the Truffle console but if I try from the Geth Javascript console I get an error.
Please refer to the pictures below:
Truffle console
Geth javascript console
Software used
Geth (v1.7.3-stable)
NodeJS (v6.12.3)
TestRPC (v6.0.3 (ganache-core:2.0.2))
Truffle (v4.0.5)
Geth does not know about MetaCoin. In Geth console, you need to do:
var MetaCoin = web3.eth.Contract(metaCoinJsonAbi, itsAddress);
// or web3.eth.contract depending on the version of Web3
Then you can use it. Refer to this.

Could not connect to Ethereum client (testrpc)

I've properly installed geth, truffle and testrpc. Now I'm trying to do some Ethereum contract tutorials. I initialized project by truffle init, so the project folder with default contracts was created, then I ran testrpc and compiled contracts by typing truffle compile (build directory was created successfully). The thing is, truffle test is not working as if there is no testrpc running.I'm using Git Bash on Windows. What might be the problem?
Screen
check this out
You need a test file in your directory before you can run truffle test
You need two CMD window,
one to run testrpc command (Do not terminate),
second window to compile
To compile, run the command below
Web3 = require('web3')
web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")
solc = require('solc')
sourceCode = fs.readFileSync('ContractFile.sol').toString()
compileCode = solc.compile(sourceCode)
//Get the interface of contract
contractABI = JSON.parse(compileCode.contracts[':ContractFile'].interface)
//Get the bytecode of the contract
bytecode = compiledCode.contracts[':ContractFile'].bytecode
//Ready to deploy
ContractFileContract = web3.eth.contract(contractABI)
//use the object above to deploy the contract
ContractDeployed = ContractFileContract.new({data: bytecode, from: web3.eth.account[0], gas: 4700000})
//Check your testrpc console.
Don't forget to declear solidity version at the top of you contract.