I have a counter in a Solidity contract:
uint8 public transactionCounter;
function ContractConstructor() public {
transactionCounter = 0;
}
function getTransactionCounter() returns (uint8) {
return transactionCounter;
}
function trns() {
transactionCounter += 1;
}
When interacting with the contract, i get back the transactionCounter
App.contract.XYContract.deployed()then(function(instance){
return instance.getTransactionCounter.call();
}).then(function(counter) {
console.log(counter);
});
In the JavaScript console, I get:
e {s: 1, e: 0, c: Array(1)}
What are s
, e
and c
and where is it documented?