From 5de13d91ca2df1bae12b572e6905f01f65b1136a Mon Sep 17 00:00:00 2001 From: lukema95 <867273263@qq.com> Date: Mon, 13 May 2024 18:23:19 +0800 Subject: [PATCH] fix test_scenario docs --- .../sui-framework/sources/test/test_scenario.move | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/sui-framework/packages/sui-framework/sources/test/test_scenario.move b/crates/sui-framework/packages/sui-framework/sources/test/test_scenario.move index f4733847e6085..3a6d0178f248d 100644 --- a/crates/sui-framework/packages/sui-framework/sources/test/test_scenario.move +++ b/crates/sui-framework/packages/sui-framework/sources/test/test_scenario.move @@ -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 @@ -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,