File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,24 @@ const TOKEN_CONTRACT = 'Hqyu8WcRwXCTwbNxdga4CN5gsVEGc67wng4TFzceyLUv';
64
64
// Identity State Transitions
65
65
describe ( 'Identity State Transitions' ) ;
66
66
67
+ await test ( 'identity_create - requires funding' , async ( ) => {
68
+ try {
69
+ // Would need funding transaction
70
+ const result = await wasmSdk . identity_create (
71
+ sdk ,
72
+ TEST_MNEMONIC ,
73
+ null , // no alias
74
+ 0 // key index
75
+ ) ;
76
+ throw new Error ( 'Should fail without funding' ) ;
77
+ } catch ( error ) {
78
+ if ( error . message . includes ( 'Should fail' ) ) {
79
+ throw error ;
80
+ }
81
+ console . log ( ' Expected error without funding' ) ;
82
+ }
83
+ } ) ;
84
+
67
85
await test ( 'identity_create with all SECP256K1 keys (common scenario)' , async ( ) => {
68
86
try {
69
87
// Generate unique keys for testing (1 asset lock + 3 identity keys)
You can’t perform that action at this time.
0 commit comments