From b899b1f9e5c00dabceae2cfae0196fec56b23c44 Mon Sep 17 00:00:00 2001 From: zerosnacks <95942363+zerosnacks@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:15:57 +0200 Subject: [PATCH] chore: document how state overrides work in `call` and `call_raw` (#570) * document state overrides * link to state setter --- crates/contract/src/call.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/contract/src/call.rs b/crates/contract/src/call.rs index 498a913635d..deba8d670a5 100644 --- a/crates/contract/src/call.rs +++ b/crates/contract/src/call.rs @@ -367,6 +367,7 @@ impl, D: CallDecoder, N: Network> CallBu } /// Queries the blockchain via an `eth_call` without submitting a transaction to the network. + /// If [`state overrides`](Self::state) are set, they will be applied to the call. /// /// Returns the decoded the output by using the provided decoder. /// If this is not desired, use [`call_raw`](Self::call_raw) to get the raw output data. @@ -376,6 +377,7 @@ impl, D: CallDecoder, N: Network> CallBu } /// Queries the blockchain via an `eth_call` without submitting a transaction to the network. + /// If [`state overrides`](Self::state) are set, they will be applied to the call. /// /// Does not decode the output of the call, returning the raw output data instead. ///