File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
convex-core/src/test/java/lab Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
package lab ;
2
2
3
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
4
+
3
5
import java .io .IOException ;
4
6
5
7
import org .junit .jupiter .api .Test ;
@@ -59,8 +61,11 @@ public class PaisleyTest extends ACVMTest {
59
61
c =exec (c ,"(def id (call personal (create)))" );
60
62
CVMLong ID =c .getResult ();
61
63
AVector <?> AID =Vectors .of (PERSONAL ,ID );
64
+ c =exec (c ,"(def aid [personal id])" );
62
65
63
- c =exec (c ,"(def id (call [personal id] (mint 1000000)))" );
66
+ c =exec (c ,"(call aid (mint 1000000))" );
67
+ assertEquals (1000000 ,evalL (c ,"(asset/balance aid)" )); // minted quantity
68
+ assertEquals (0 ,evalL (c ,"(asset/balance aid #0)" )); // zero account has no holding
64
69
65
70
AssetTester .doFungibleTests (c , AID , c .getAddress ());
66
71
}
You can’t perform that action at this time.
0 commit comments