Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in debug.traceTransaction #867

Closed
minggo1981 opened this issue Oct 30, 2019 · 2 comments
Closed

error in debug.traceTransaction #867

minggo1981 opened this issue Oct 30, 2019 · 2 comments
Assignees
Labels

Comments

@minggo1981
Copy link

System information

Geth version: geth 2.2.5

OS & Version: Centos 7

Actual behaviour

debug.traceTransaction("0x8fa2d94942c557604b0aecfedc19faa3b86be6f490ffc020d054955d3f9ade6f",{tracer:"callTracer"})
{
error: "VM in read-only mode. Mutating opcode prohibited",
from: "0xcfda975d9e9562608b277d293eceb37b8aaf112b",
gas: "0x1411e",
gasUsed: "0x1411e",
input: "0x5d9ec2100000000000000000000000000000000000000000000000000000000000000001",
time: "6.61275ms",
to: "0xb05f72ef477853aebfd93cf76c118bdb887996a3",
type: "CALL",
value: "0x0"
}

@zzy96
Copy link
Contributor

zzy96 commented Oct 30, 2019

Hi @minggo1981

This error means you are trying to update a public contract's state from a private transaction. Please check your actual transaction.

@prd-fox prd-fox added the bug label Oct 31, 2019
@prd-fox
Copy link
Contributor

prd-fox commented Oct 31, 2019

Creating and updating the simplestorage contract, then tracing it gives the same output, when it should succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants