Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Add experimental support for EIP-144 #11607

Closed
rmeissner opened this issue Apr 6, 2020 · 0 comments
Closed

Add experimental support for EIP-144 #11607

rmeissner opened this issue Apr 6, 2020 · 0 comments
Assignees
Labels
A3-stale 🍃 Pull request did not receive any updates in a long time. No review needed at this stage. Close it. F8-enhancement 🎊 An additional feature request. M4-evm 🎰 EVM and account state M6-rpcapi 📣 RPC API. P5-sometimesoon 🌲 Issue is worth doing soon. Q5-substantial 📓 Can be fixed by a developer with decent experience.

Comments

@rmeissner
Copy link

Geth implemented an experimental support for EIP-144. With this it is possible to modify the state for a call (e.g. injecting code at a specific address or changing the balance of an address). This makes it a lot easier to query information from the chain and allows to remove some unnecessary code from contracts, therefore minimizing the overall state.

EIP: ethereum/EIPs#144
Geth issue: ethereum/go-ethereum#19836
Geth PR: ethereum/go-ethereum#19917

Example JSON request:

{
        "jsonrpc": "2.0",
        "method": "eth_call",
        "params": [
            {
                "to": "0x16baf0de678e52367adc69fd067e5edd1d33e3bf"
            },
            "latest",
            {
                "0x16baf0de678e52367adc69fd067e5edd1d33e3bf": {
                    "code": "0x6080604052348015600f57600080fd5b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600d8152602001807f4e6f7420737570706f727465640000000000000000000000000000000000000081525060200191505060405180910390fdfea2646970667358221220822d1fa73c1b29b6891e98d83f3aa09b8ad6ccd4c0025cfda39942b649276a1e64736f6c63430006040033"
                }
            }
        ],
        "id": 1
}
@vorot93 vorot93 added F8-enhancement 🎊 An additional feature request. M6-rpcapi 📣 RPC API. P5-sometimesoon 🌲 Issue is worth doing soon. Q5-substantial 📓 Can be fixed by a developer with decent experience. labels May 20, 2020
@vorot93 vorot93 self-assigned this May 24, 2020
@vorot93 vorot93 added the M4-evm 🎰 EVM and account state label May 24, 2020
@adria0 adria0 added the A3-stale 🍃 Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Jul 27, 2020
@adria0 adria0 closed this as completed Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-stale 🍃 Pull request did not receive any updates in a long time. No review needed at this stage. Close it. F8-enhancement 🎊 An additional feature request. M4-evm 🎰 EVM and account state M6-rpcapi 📣 RPC API. P5-sometimesoon 🌲 Issue is worth doing soon. Q5-substantial 📓 Can be fixed by a developer with decent experience.
Projects
None yet
Development

No branches or pull requests

3 participants