@@ -2,7 +2,7 @@ import { Clarinet, Tx, Chain, Account, types } from 'https://deno.land/x/clarine
2
2
import { assertEquals } from 'https://deno.land/std@0.90.0/testing/asserts.ts' ;
3
3
4
4
Clarinet . test ( {
5
- name : 'Ensure that owner can create a lobby' ,
5
+ name : 'Ensure that user can create a lobby' ,
6
6
async fn ( chain : Chain , accounts : Map < string , Account > ) {
7
7
const deployer = accounts . get ( 'deployer' ) ! ;
8
8
const wallet_1 = accounts . get ( 'wallet_1' ) ! ;
@@ -23,7 +23,7 @@ Clarinet.test({
23
23
types . ascii ( `straight` ) , // curves
24
24
types . uint ( 24 ) , // hours
25
25
] ,
26
- deployer . address
26
+ wallet_1 . address
27
27
) ,
28
28
] ) ;
29
29
// console.log(`block `, block);
@@ -39,13 +39,13 @@ Clarinet.test({
39
39
) ;
40
40
assertEquals (
41
41
tx . result ,
42
- '(ok {active: true, balance: u5, commission: u5, curves: "straight", description: "lobby description", factor: u5, hours: u24, length: "long", mapy: "miamiBeach", owner: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM , price: u5, traffic: "intense"})'
42
+ '(ok {active: true, balance: u5, commission: u5, curves: "straight", description: "lobby description", factor: u5, hours: u24, length: "long", mapy: "miamiBeach", owner: ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5 , price: u5, traffic: "intense"})'
43
43
) ;
44
44
} ,
45
45
} ) ;
46
46
47
47
Clarinet . test ( {
48
- name : 'Ensure that owner can create a lobby and disable it, users can not join after disabled' ,
48
+ name : 'Ensure that user can create a lobby and owner can disable it, users can not join after disabled' ,
49
49
async fn ( chain : Chain , accounts : Map < string , Account > ) {
50
50
const deployer = accounts . get ( 'deployer' ) ! ;
51
51
const wallet_1 = accounts . get ( 'wallet_1' ) ! ;
@@ -66,7 +66,7 @@ Clarinet.test({
66
66
types . ascii ( `straight` ) , // curves
67
67
types . uint ( 24 ) , // hours
68
68
] ,
69
- deployer . address
69
+ wallet_1 . address
70
70
) ,
71
71
] ) ;
72
72
// console.log(`block `, block);
@@ -82,7 +82,7 @@ Clarinet.test({
82
82
) ;
83
83
assertEquals (
84
84
tx . result ,
85
- '(ok {active: true, balance: u5, commission: u5, curves: "straight", description: "lobby description", factor: u5, hours: u24, length: "long", mapy: "miamiBeach", owner: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM , price: u5, traffic: "intense"})'
85
+ '(ok {active: true, balance: u5, commission: u5, curves: "straight", description: "lobby description", factor: u5, hours: u24, length: "long", mapy: "miamiBeach", owner: ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5 , price: u5, traffic: "intense"})'
86
86
) ;
87
87
88
88
let block2 = chain . mineBlock ( [
0 commit comments