Skip to content

Commit

Permalink
[doc] fix unused import in tutorial code
Browse files Browse the repository at this point in the history
  • Loading branch information
sblackshear committed Sep 16, 2022
1 parent fe8b107 commit 922a54a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/src/build/move/write-package.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ $ touch my_first_package/sources/my_module.move
and adding the following code to the `my_module.move` file:
```move
```rust
module my_first_package::my_module {
// Part 1: imports
use sui::object::{Self, UID};
use sui::transfer;
use sui::tx_context::TxContext;
use sui::tx_context::{Self, TxContext};
// Part 2: struct definitions
struct Sword has key, store {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module my_first_package::my_module {
// Part 1: imports
use sui::object::{Self, UID};
use sui::transfer;
use sui::tx_context::TxContext;
use sui::tx_context::{Self, TxContext};

// Part 2: struct definitions
struct Sword has key, store {
Expand All @@ -21,8 +21,6 @@ module my_first_package::my_module {

// Part 3: module initializer to be executed when this module is published
fun init(ctx: &mut TxContext) {
use sui::transfer;
use sui::tx_context;
let admin = Forge {
id: object::new(ctx),
swords_created: 0,
Expand Down Expand Up @@ -129,8 +127,6 @@ module my_first_package::my_module {

#[test]
public fun test_sword_create() {
use sui::tx_context;

// create a dummy TxContext for testing
let ctx = tx_context::dummy();

Expand Down

0 comments on commit 922a54a

Please sign in to comment.