Skip to content

Commit

Permalink
chore: document how state overrides work in call and call_raw (al…
Browse files Browse the repository at this point in the history
…loy-rs#570)

* document state overrides

* link to state setter
  • Loading branch information
zerosnacks authored and ben186 committed Jul 27, 2024
1 parent 2a0f6e2 commit b899b1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/contract/src/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ impl<T: Transport + Clone, P: Provider<T, N>, 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.
Expand All @@ -376,6 +377,7 @@ impl<T: Transport + Clone, P: Provider<T, N>, 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.
///
Expand Down

0 comments on commit b899b1f

Please sign in to comment.