@@ -11,53 +11,50 @@ import { sendTransaction } from "../../../transaction/actions/send-transaction.j
1111import { installPublishedExtension } from "./installPublishedExtension.js" ;
1212
1313describe . runIf ( process . env . TW_SECRET_KEY ) ( "install extension" , ( ) => {
14- it . sequential (
15- "should install extension to a dynamic contract" ,
16- async ( ) => {
17- await deployCloneFactory ( {
18- account : TEST_ACCOUNT_A ,
19- chain : ANVIL_CHAIN ,
20- client : TEST_CLIENT ,
21- } ) ;
14+ it . sequential ( "should install extension to a dynamic contract" , async ( ) => {
15+ await deployCloneFactory ( {
16+ account : TEST_ACCOUNT_A ,
17+ chain : ANVIL_CHAIN ,
18+ client : TEST_CLIENT ,
19+ } ) ;
2220
23- const deployed = await deployPublishedContract ( {
24- account : TEST_ACCOUNT_A ,
25- chain : ANVIL_CHAIN ,
26- client : TEST_CLIENT ,
27- contractId : "EvolvingNFT" ,
28- contractParams : {
29- contractURI : "" ,
30- defaultAdmin : TEST_ACCOUNT_A . address ,
31- name : "Evolving nft" ,
32- royaltyBps : 0n ,
33- royaltyRecipient : TEST_ACCOUNT_A . address ,
34- saleRecipient : TEST_ACCOUNT_A . address ,
35- symbol : "ENFT" ,
36- trustedForwarders : [ ] ,
37- } ,
38- } ) ;
21+ const deployed = await deployPublishedContract ( {
22+ account : TEST_ACCOUNT_A ,
23+ chain : ANVIL_CHAIN ,
24+ client : TEST_CLIENT ,
25+ contractId : "EvolvingNFT" ,
26+ contractParams : {
27+ contractURI : "" ,
28+ defaultAdmin : TEST_ACCOUNT_A . address ,
29+ name : "Evolving nft" ,
30+ royaltyBps : 0n ,
31+ royaltyRecipient : TEST_ACCOUNT_A . address ,
32+ saleRecipient : TEST_ACCOUNT_A . address ,
33+ symbol : "ENFT" ,
34+ trustedForwarders : [ ] ,
35+ } ,
36+ } ) ;
3937
40- const contract = getContract ( {
41- address : deployed ,
42- chain : ANVIL_CHAIN ,
43- client : TEST_CLIENT ,
44- } ) ;
38+ const contract = getContract ( {
39+ address : deployed ,
40+ chain : ANVIL_CHAIN ,
41+ client : TEST_CLIENT ,
42+ } ) ;
4543
46- const transaction = installPublishedExtension ( {
47- account : TEST_ACCOUNT_A ,
48- contract,
49- extensionName : "DirectListingsLogic" ,
50- } ) ;
44+ const transaction = installPublishedExtension ( {
45+ account : TEST_ACCOUNT_A ,
46+ contract,
47+ extensionName : "DirectListingsLogic" ,
48+ } ) ;
5149
52- await sendTransaction ( { account : TEST_ACCOUNT_A , transaction } ) ;
50+ await sendTransaction ( { account : TEST_ACCOUNT_A , transaction } ) ;
5351
54- const extensions = await readContract ( {
55- contract,
56- method : resolveMethod ( "getAllExtensions" ) ,
57- params : [ ] ,
58- } ) ;
52+ const extensions = await readContract ( {
53+ contract,
54+ method : resolveMethod ( "getAllExtensions" ) ,
55+ params : [ ] ,
56+ } ) ;
5957
60- expect ( extensions . length ) . toEqual ( 4 ) ;
61- } ,
62- ) ;
58+ expect ( extensions . length ) . toEqual ( 4 ) ;
59+ } ) ;
6360} ) ;
0 commit comments