Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

docs: fix eth_call interactive docs example #3774

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/chains/ethereum/ethereum/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2769,7 +2769,7 @@ export default class EthereumApi implements Api {
* const [from] = await provider.request({ method: "eth_accounts", params: [] });
* const txObj = { from, gas: "0x5b8d80", gasPrice: "0x1dfd14000", value:"0x0", data: simpleSol };
* const slot = "0x0000000000000000000000000000000000000000000000000000000000000005"
* const overrides = { [from]: { balance: "0x3e8", "nonce: "0x5", code: "0xbaddad42", stateDiff: { [slot]: "0xbaddad42"}}}
* const overrides = { [from]: { balance: "0x3e8", nonce: "0x5", code: "0xbaddad42", stateDiff: { [slot]: "0x00000000000000000000000000000000000000000000000000000000baddad42"}}};
* const result = await provider.request({ method: "eth_call", params: [txObj, "latest", overrides] });
* console.log(result);
* ```
Expand Down