There was an error while loading. Please reload this page.
1 parent 6524d4d commit f8d3934Copy full SHA for f8d3934
1 file changed
escrow/sources/escrow.move
@@ -52,4 +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
+}
65
0 commit comments