Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [invalid-opcode]

Questions about and related to invalid opcode.

0
votes
0answers
5 views

Checking outgoing TX from duneanalytics.com query [on hold]

I am trying to run a script from explore.duneanalytics.com to check outgoing tx from an array of addresses but get the error: Error running query: syntax error at or near "output" LINE 9: WHERE "from"...
0
votes
0answers
23 views

Invalid OPCode on passing address parameter through Java wrapper on smart contract using Ganache

I have been facing this issue for some time and I realized there must be a problem with Ganache or maybe someone has any idea why it doesn't work. I have created a very simple contract as below, it ...
3
votes
2answers
41 views

Does a string message increase the gas usage of a `require` statement?

In solc 0.4.22 onward, it is possible to provide a string message containing details about the error that will be passed back to the caller (in require, assert and revert statements). Does the gas ...
1
vote
3answers
145 views

Test array values if key/value exists - Does not work

I have a problem with the following contract. When I deploy it, normally on calling the function addBalance() it should go into the false. But instead, it completely does not work and I get the ...
0
votes
1answer
187 views

Solidity: VM Exception while processing transaction: invalid opcode - What happens?

If VM Exception while processing transaction: invalid opcode is thrown, does it have the same effect than revert?
0
votes
1answer
449 views

When I use remix,there is a issue “Gas estimation failed,VM Exception while processing transaction: invalid opcode”

When I use function setDailyAssessmentInfo, error is raised: Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force ...
3
votes
2answers
365 views

Invalid opcode 0x3d

Trying to submit a transaction using remix on local javascript vm and it succeeds. When I submit it on my real private network it fails with "invalid opcode 0x3d".. I can't seem to find 0x3d online......
0
votes
0answers
153 views

Invalid op code from truffle console

I'm following this tutorial for a simple contract. https://blog.zeppelin.solutions/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05 After running testrpc, compiled with truffle ...
0
votes
1answer
324 views

VM Exception while processing transaction: invalid opcode

I am trying to save string into a contract and hit this error. My contract is pragma solidity ^0.4.18; contract MyRecord { address owner; address guest; string note; modifier ...
0
votes
1answer
118 views

Invalid opcode on estimateGas

This is my contract pragma solidity ^0.4.20; contract Test { struct TestStruct { bytes32 name; mapping(uint => address) tesMapping; } TestStruct[] public testStructs; ...
0
votes
2answers
769 views

Truffle TestRPC Error: VM Exception while executing eth_call: invalid opcode

I've created a project from a Truffle Box. I have created my own contract for voting. At this point i want to be able to vote, which seems to be working, and return the total votes for all candidates, ...
2
votes
1answer
199 views

error: invalid opcode using modifier

Im getting the following error when trying to run my js test file using truffle: Error: VM Exception while executing eth_call: invalid opcode The js test file is the following: var DebitService = ...
1
vote
1answer
128 views

Truffle. Type index error (Error: Error: VM Exception while executing eth_call: invalid opcode)

I have got error if i try call method getArrayData() contract ManagerDb { struct ManagerStruct { bytes32 firstname; bytes32 lastname; bytes32 email; uint index; ...
2
votes
1answer
1k views

What does this error “invalid opcode 0xfd” mean?

I found an error message, 'invalid opcode 0xfd'. What does this mean? I googled, and found just one result here. Quote: "I the invalid opcode 0xfd is never hit (Some compilers encode safety ...
2
votes
1answer
3k views

Why is this test failing with an invalid opcode error at the transferFrom() call?

I get the following error: 1) Contract: Bencoin should send Bencoin correctly via transferFrom(address, address, uint256): Uncaught Error: VM Exception ...
0
votes
2answers
135 views

Error while creating the contract with ethereum in the initial tx

I get this error when I try to create the contract with some ETH, but if I just click create without sending ether the contract is correctly deployed.
1
vote
1answer
517 views

Why does Solidity use an invalid jump instead of an invalid opcode for throws?

In Solidity's 0.4.9 release: Internal exceptions are now thrown by using an invalid opcode (0xfe), manual exceptions still use an invalid jump. and Code generator: Internal errors (array out ...
4
votes
2answers
2k views

invalid opcode for this.balance when contract balance > 0

I get an exception when I call getBalance in Remix and the contract balance is greater than 0 (ie. I sent some ether using the fallback function): Exception during execution. (invalid opcode). ...
1
vote
1answer
2k views

(Solidity Browser) VM Exception: invalid opcode

I access the solidity browser from the following URL. https://ethereum.github.io/browser-solidity/ There are one basic sample code and one "Ballot" sample code when the page is opened by default. I ...
3
votes
1answer
5k views

TestRPC undeterministically throw “invalid opcode”

We have contract test suites running against TestRPC, it could fail the first run and succeed the consecutive second run. What can cause this weird behavior and how can I fix it? The CI histories: ...
3
votes
1answer
573 views

Difference between STOP and INVALID opcode

STOP halts execution and according to this mentions INVALID is used as an abort. Is the difference between these opcodes purely semantical?
6
votes
1answer
9k views

Getting 'invalid opcode' error

First of all, sorry for the code in Portuguese, this was a choice of the team and I had no saying on that. I'm writing a Billet Manager, the code is as follows: contract GerenciadorBoletos { ...
22
votes
4answers
4k views

Why does a Solidity throw consume all gas?

When you throw an exception, all gas is consumed. What is the rationale for this design decision?