There was an error while loading. Please reload this page.
1 parent f8d3934 commit 5d44ff5Copy full SHA for 5d44ff5
1 file changed
escrow/sources/escrow.move
@@ -52,14 +52,14 @@ module Escrow::escrow {
52
bw.balance = bw.balance + d.amount;
53
d.completed = true;
54
}
55
-public entry fun entry_demo(_s: &signer) {
56
- let bw = new_wallet();
57
- let sw = new_wallet();
58
- deposit(&mut bw, 150);
59
- let d = create(@0x1, @0x2, 100);
60
- fund(@0x1, &mut bw, &mut d);
61
- release(@0x2, &mut sw, &mut d);
62
- assert!(balance(&bw) == 50, 0);
63
- assert!(balance(&sw) == 100, 1);
64
-}
+ public entry fun entry_demo(_s: &signer) {
+ let bw = new_wallet();
+ let sw = new_wallet();
+ deposit(&mut bw, 150);
+ let d = create(@0x1, @0x2, 100);
+ fund(@0x1, &mut bw, &mut d);
+ release(@0x2, &mut sw, &mut d);
+ assert!(balance(&bw) == 50, 0);
+ assert!(balance(&sw) == 100, 1);
+ }
65
0 commit comments