Perform provider.call() with State Override Set #2393
Unanswered
toriqahmads
asked this question in
Q&A
Replies: 2 comments 3 replies
-
I've tried with const result = await provider.send("eth_call", [
{
from: "0x...",
to: "0x...",
value: hexValue(parseEther("1.0")),
data,
},
"latest",
{
'0x...': {
code: myContract.bytecode
}
},
]); however geth always returns 0x |
Beta Was this translation helpful? Give feedback.
3 replies
-
Took me a while to figure out state diffs. Since there's not a single example to be found online, here it comes:
Output:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I want to perform a call with overriding the states. It's for easier debugging a contract without publish it on the network.
In the geth ethereum documentation, it's possible to do it. This is the link geth State Override Set
In web3js it can be performed by extending the eth_call with 3 parameters and then pass the override state set values.
How can I perform it with ethers.js?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions