Skip to content

Commit

Permalink
fix test_scenario docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 committed May 13, 2024
1 parent c04bb5e commit 5de13d9
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ module sui::test_scenario {
/// transaction sender access to objects in (only) their inventory.
/// Example usage:
/// ```
/// let addr1: address = 0;
/// let addr2: address = 1;
/// let addr1: address = @0x0;
/// let addr2: address = @0x1;
/// // begin a test scenario in a context where addr1 is the sender
/// let scenario = &mut test_scenario::begin(addr1);
/// let mut scenario_val = test_scenario::begin(addr1);
/// let scenario = &mut scenario_val;
/// // addr1 sends an object to addr2
/// {
/// let some_object: SomeObject = ... // construct an object
Expand All @@ -67,7 +68,7 @@ module sui::test_scenario {
/// SomeObject::some_function(obj)
/// };
/// ... // more txes
/// test_scenario::end(scenario);
/// test_scenario::end(scenario_val);
/// ```
public struct Scenario {
txn_number: u64,
Expand Down

0 comments on commit 5de13d9

Please sign in to comment.