Template README
This is the README
file located in the template
folder.
This file is rendered and shown to the reader.
In the code section, you can see a template
tab with the TODO
action items for the reader, and the solution
tab with the solution to the template
.
#![allow(unused)] fn main() { /* TODO: create a new public struct named `Pallet`. */ }
/* TODO: use your new module `balances` */ fn main() { println!("Hello, world!"); }
#![allow(unused)] fn main() { pub struct Pallet {} }
mod balances; fn main() { println!("Hello, world!"); }
diff --git a/src/balances.rs b/src/balances.rs
new file mode 100644
index 00000000..dae1c4f1
--- /dev/null
+++ b/src/balances.rs
@@ -0,0 +1 @@
+/* TODO: create a new public struct named `Pallet`. */
diff --git a/src/main.rs b/src/main.rs
index a30eb952..2b4f7670 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,5 @@
+/* TODO: use your new module `balances` */
+
fn main() {
println!("Hello, world!");
}
diff --git a/src/balances.rs b/src/balances.rs
index dae1c4f1..4a1da04e 100644
--- a/src/balances.rs
+++ b/src/balances.rs
@@ -1 +1 @@
-/* TODO: create a new public struct named `Pallet`. */
+pub struct Pallet {}
diff --git a/src/main.rs b/src/main.rs
index 2b4f7670..ea8024e5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-/* TODO: use your new module `balances` */
+mod balances;
fn main() {
println!("Hello, world!");