@@ -93,6 +93,7 @@ export const registerBase = async ({
9393
9494 // console.log("DEBUG");
9595
96+ const owners = domains . map ( ( domain ) => { return domain . owner . id } ) ;
9697 const parentHashes = domains . map ( ( domain ) => { return domain . parentHash } ) ;
9798 const labels = domains . map ( ( domain ) => { return domain . label } ) ;
9899 const domainAddresses = domains . map ( ( domain ) => { return domain . address } ) ;
@@ -108,10 +109,16 @@ export const registerBase = async ({
108109 // We aren't setting configs intentionally.
109110 // console.log(`Registering ${domains.length} root domains...`);
110111 tx = await zns . rootRegistrar . connect ( regAdmin ) . registerRootDomainBulk (
112+ owners ,
111113 labels ,
112114 domainAddresses ,
113115 tokenURIs ,
114- distrConfigEmpty , // TODO what should this be? stake vs, direct should be upheld maybe?
116+ {
117+ pricerContract : hre . ethers . ZeroAddress ,
118+ paymentType : 0n , // Direct
119+ accessType : 1n , // Open
120+
121+ } , // TODO what should this be? stake vs, direct should be upheld maybe?
115122 paymentConfigEmpty ,
116123 // {
117124 // // TODO Debug, force the TX
@@ -171,6 +178,8 @@ export const registerBase = async ({
171178
172179 // console.log(`DOMAINHASHES: ${domainHashes.length}`);
173180
181+ // console.log(txReceipt.hash);
182+
174183 return { domainHashes, txHash : txReceipt . hash , retryData : undefined } ;
175184} ;
176185
0 commit comments