[go: up one dir, main page]

EVM/Node: eth_call override storage (full)

What

Follows !14869 (merged)

Part of #7476 (closed)

Implements state part of the state override of eth_call.

see go-ethereum doc for spec.

RQ: potential follow-up: it seems the doc implies you can set an empty storage ? Which demand a slightly more convoluted encoding, so it's left for later.

{
  "0xebe8efa441b9302a0d7eaecc277c09d20d684540": {
    "code": "0x...",
    "state": {
      ""
    }
  }
}

Why

Because maybe someone need it ? And it'd be weird to have stateDiff and not state maybe ?

How

Delete the whole storage, then apply as stateDiff.

Note that in geth state and stateDiff are exclusive, so we do the check.

Manually testing the MR

dune exec etherlink/tezt/tests/main.exe -- alpha state_replace

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Pierre-Emmanuel CORNILLEAU

Merge request reports

Loading