From b8ec69b8b85ecc4aab8379944c961e48c4b2023e Mon Sep 17 00:00:00 2001 From: enitrat Date: Thu, 14 Nov 2024 17:43:34 +0700 Subject: [PATCH] keep alice context in execute starknet call doc --- docs/general/cairo_precompiles.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/general/cairo_precompiles.md b/docs/general/cairo_precompiles.md index 4118ff7f9..303c02b76 100644 --- a/docs/general/cairo_precompiles.md +++ b/docs/general/cairo_precompiles.md @@ -161,23 +161,24 @@ sequenceDiagram participant Alice participant Contract_X participant Precompile_75003 - participant Cairo_Calls + participant CairoContract rect rgb(200, 255, 200) - Note over Alice,Cairo_Calls: Successful Flow - Direct Call + Note over Alice,CairoContract: Successful Flow - Direct Call Alice->>Precompile_75003: Direct Call with cairo_calls[] Note over Precompile_75003: Check: Not delegatecall ✓ loop For each call in cairo_calls - Precompile_75003->>Cairo_Calls: Execute Cairo Call - + Precompile_75003->>Alice: execute_starknet_call + Note right of Precompile_75003: Calls back to Alice's
Starknet contract + Alice->>CairoContract: Execute on Starknet end Precompile_75003-->>Alice: Success ✓ end rect rgb(255, 200, 200) - Note over Alice,Cairo_Calls: Failed Flow - Delegatecall Attempt + Note over Alice,CairoContract: Failed Flow - Delegatecall Attempt Alice->>Contract_X: Call Contract_X->>Precompile_75003: delegatecall Note over Precompile_75003: Check: Is delegatecall ✗
Operation not permitted