Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

1
vote
0answers
36 views

Remix testing timeout with JavaScript VM when calling a large array

I'm trying to test a contract getter method that returns a large array. I am using Remix and deploying using JavaScript VM. My contract deploys alright, but trying to call the getArray() method causes ...
0
votes
1answer
30 views

Problem deploying in JavaScriptVM

I have a really strange problem. When I deploy a contract in JavaScriptVM using Remix including the following function: function setLoanStatus(address _loan, bytes1 _newStatus) public { // "A" = ...
1
vote
1answer
34 views

Run contracts and create traces with Node

I came across an article: https://wanderer.github.io/ethereum/nodejs/code/2014/08/12/running-contracts-with-vm/ At the bottom of the page is shown how to write a contract execution route. But ...
1
vote
0answers
54 views

Can't call another contract constant function in Remix in Web3 provider mode, but it works in Javascript VM

Remix behaves differently when running Javascript VM and web3 provider mode. I have two contracts: contract ERC20Basic { function totalSupply() public view returns (uint256){} function ...
0
votes
1answer
34 views

UI integration with Smart Contract in case of using JavaScript VM

Is it possible to integrate an UI with a smart sontract in case of using java script vm in remix ? or we have to use web3 provider ?
1
vote
0answers
134 views

Simple Bool Assignment runs out of Gas- can't figure out why?

I'm testing using Remix against web3 provider (Ganache). Here is my code: when "Startup = false" is uncommented, it runs out of gas. It works fine on Javascript VM in Remix, but not on Ganache ...
0
votes
1answer
49 views

How to debug Web3JS for a not yet deployed contract?

I have remix-ide installed. I want to debug how my contract can be interacted in a browser using Web3JS. How can I can run it in browser? Can it be done with JavaScript VM? Or which VM I should ...
1
vote
1answer
115 views

Oraclize Sample contracts failing in JavaScript VM: VM Exception: out of gas / invalid opcode

I'm simply trying to run one of the sample contracts here at dapps.oraclize.it/browser-solidity/ e.g. DieselPrice.sol. When I create the contract without passing a value I get VM Exception: out of ...
1
vote
2answers
478 views

(Remix IDE) Getting VM error: invalid opcode in Javascript VM,

I'm creating an ERC20 token that will have 9 separate funding rounds. When I call the startNextRound function in the JavaScript VM, I get the following error: transact to browser/SatanCoin.sol:...
0
votes
0answers
63 views

Increasing funds on test accounts. JS VM on remix.ethereum.org

Test accounts such as 0xca35b7d915458ef540ade6068dfe2f44e8fa733c have a balance of 100 ethers by default. I need to perform a 200 ether transfer. How can I get a test account on JS VM with enough ...
0
votes
1answer
146 views

Out of Gas exception on testnet but on JVM it works

I am trying to withdraw a contracts balance to the owner of that contracts account. It works perfectly on the JVM in solidity browser. But on TestRPC it has an out of gas exception. The account has a ...
3
votes
1answer
177 views

Exception of Unknown kind of function call

I am using remix IDE and I am getting this error: Internal exception in StandardCompiler::compileInternal: /src/libsolidity/ast/ASTJsonConverter.cpp(791): Throw in function string dev::solidity::...
2
votes
2answers
358 views

How do I add Ether to Browser Solidity for Testing?

I am unable to perform any transaction in Browser Solidity as there is no ether in the account. The contract is being created, but now ether is needed to test the functions. I have tried using the "...
6
votes
1answer
404 views

Why do Solidity Browser non-constant functions return values?

When calling a state mutating function on the chain, the TX receipt object is returned. In Solidity Browser, under the Javascript VM, a return value is returned if one is set. Why does the ...