diff --git a/unit-four/lessons/5_deployment_and_testing.md b/unit-four/lessons/5_deployment_and_testing.md index 14ced83..4ab5a92 100644 --- a/unit-four/lessons/5_deployment_and_testing.md +++ b/unit-four/lessons/5_deployment_and_testing.md @@ -2,7 +2,7 @@ Next we can deploy and test our marketplace contract through the SUI CLI. -We create a simple `marketplace::widget` module so we can mint some items for us to list to help with test. +We create a simple `marketplace::widget` module so we can mint some items for us to list to help with testing. ```rust module marketplace::widget { @@ -28,7 +28,7 @@ This is basically the Hello World project from Unit One, but made even simpler. ## Deployment -First we publish both the package with: +Publish the package using: ```bash sui client publish --gas-budget 10000000 @@ -100,8 +100,6 @@ Export the object ID of the newly split `SUI` coin with balance `1`: export PAYMENT_ID= ``` -_Quiz: As an exercise, modify the marketplace contract to accept any payment that has enough balance to pay for the asking price, instead of requiring the exact amount._ - Now, let's buy back the item that we just listed: ```bash @@ -118,4 +116,4 @@ Finally, we can claim our earnings by calling the `take_profits_and_keep` method sui client call --function take_profits_and_keep --module marketplace --package $PACKAGE_ID --args $MARKET_ID --type-args 0x2::sui::SUI --gas-budget 10000000 ``` -This will reap the balance from the `payments` `Table` object and return its size to `0`. Verify this on the explorer. \ No newline at end of file +This will reap the balance from the `payments` `Table` object and return its size to `0`. Verify this on the explorer.