@@ -48,15 +48,11 @@ export class ContractRegistry extends ContractWrapper<TWRegistry> {
48
48
) : Promise < Transaction < TransactionResult > > => {
49
49
const deployerAddress = await this . getSignerAddress ( ) ;
50
50
const contractEncoder = new ContractEncoder ( this ) ;
51
- const encoded : string [ ] = await Promise . all (
52
- contractAddresses . map ( async ( address ) =>
53
- contractEncoder . encode ( "add" , [
54
- deployerAddress ,
55
- await resolveAddress ( address ) ,
56
- ] ) ,
57
- ) ,
51
+ const encoded = (
52
+ await Promise . all ( contractAddresses . map ( ( addr ) => resolveAddress ( addr ) ) )
53
+ ) . map ( ( address ) =>
54
+ contractEncoder . encode ( "add" , [ deployerAddress , address ] ) ,
58
55
) ;
59
-
60
56
return Transaction . fromContractWrapper ( {
61
57
contractWrapper : this ,
62
58
method : "multicall" ,
@@ -79,15 +75,11 @@ export class ContractRegistry extends ContractWrapper<TWRegistry> {
79
75
) : Promise < Transaction < TransactionResult > > => {
80
76
const deployerAddress = await this . getSignerAddress ( ) ;
81
77
const contractEncoder = new ContractEncoder ( this ) ;
82
- const encoded : string [ ] = await Promise . all (
83
- contractAddresses . map ( async ( address ) =>
84
- contractEncoder . encode ( "remove" , [
85
- deployerAddress ,
86
- await resolveAddress ( address ) ,
87
- ] ) ,
88
- ) ,
78
+ const encoded = (
79
+ await Promise . all ( contractAddresses . map ( ( addr ) => resolveAddress ( addr ) ) )
80
+ ) . map ( ( address ) =>
81
+ contractEncoder . encode ( "remove" , [ deployerAddress , address ] ) ,
89
82
) ;
90
-
91
83
return Transaction . fromContractWrapper ( {
92
84
contractWrapper : this ,
93
85
method : "multicall" ,
0 commit comments