Skip to content

Commit 46c2e3f

Browse files
document frame name derives from func in as_contract
1 parent 8a3b069 commit 46c2e3f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

soroban-sdk/src/env.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,9 @@ impl Env {
16921692
/// Used to write or read contract data, or take other actions in tests for
16931693
/// setting up tests or asserting on internal state.
16941694
///
1695+
/// If `f` is a named function its name becomes the contract frame's
1696+
/// function name; a closure leaves the name empty.
1697+
///
16951698
/// ### Examples
16961699
/// ```
16971700
/// use soroban_sdk::{contract, contractimpl, Env, Symbol};
@@ -1749,6 +1752,9 @@ impl Env {
17491752
/// Used to write or read contract data, or take other actions in tests for
17501753
/// setting up tests or asserting on internal state.
17511754
///
1755+
/// If `f` is a named function its name becomes the contract frame's
1756+
/// function name; a closure leaves the name empty.
1757+
///
17521758
/// ### Examples
17531759
/// ```
17541760
/// use soroban_sdk::{contract, contractimpl, xdr::{ScErrorCode, ScErrorType}, Env, Error, Symbol};

0 commit comments

Comments
 (0)