diff --git a/.vuepress/components/code1.vue b/.vuepress/components/code1.vue index 983ecce..720c453 100644 --- a/.vuepress/components/code1.vue +++ b/.vuepress/components/code1.vue @@ -42,14 +42,17 @@
-
Contract.trackBalance().subscribe((balance) => {
-    console.log("ETH balance is ", balance)
-  });
+        
const address = "0x0001020304050607080900010203040506070809";
 
-  Contract.trackBalance("0x744d70fdbe2ba4cf95131626614a1763df805b9e").subscribe((balance) => {
-    console.log("SNT balance is ", balance)
-  });
-  
1
2
3
4
5
6
7
+subspace.trackBalance(address).subscribe((balance) => { + console.log("ETH balance is ", balance) +}); + +subspace.trackBalance(address, "0x744d70fdbe2ba4cf95131626614a1763df805b9e").subscribe((balance) => { + console.log("SNT balance is ", balance) +}); + +
1
2
3
4
5
6
7
8
9
@@ -94,8 +97,7 @@