File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,8 @@ pub async fn deploy_outpace_contract(
223
223
Ok ( ( outpace_address, outpace_contract) )
224
224
}
225
225
226
- /// Deploys the Sweeper contract from [`LEADER`]
226
+ /// Deploys the Identity contract for the give `for_address`
227
+ /// Adds privileges by the constructor for the `add_privileges_to` addresses
227
228
pub async fn deploy_identity_contract (
228
229
web3 : & Web3 < Http > ,
229
230
for_address : Address ,
@@ -234,8 +235,8 @@ pub async fn deploy_identity_contract(
234
235
. map ( |a| Token :: Address ( H160 ( a. to_bytes ( ) ) ) )
235
236
. collect ( ) ;
236
237
237
- let sweeper_contract = Contract :: deploy ( web3. eth ( ) , & IDENTITY_ABI )
238
- . expect ( "Invalid ABI of Sweeper contract" )
238
+ let identity_contract = Contract :: deploy ( web3. eth ( ) , & IDENTITY_ABI )
239
+ . expect ( "Invalid ABI of Identity contract" )
239
240
. confirmations ( 0 )
240
241
. options ( Options :: with ( |opt| {
241
242
opt. gas_price = Some ( 1 . into ( ) ) ;
@@ -248,9 +249,9 @@ pub async fn deploy_identity_contract(
248
249
)
249
250
. await ?;
250
251
251
- let sweeper_address = Address :: from ( sweeper_contract . address ( ) . to_fixed_bytes ( ) ) ;
252
+ let identity_address = Address :: from ( identity_contract . address ( ) . to_fixed_bytes ( ) ) ;
252
253
253
- Ok ( ( sweeper_address , sweeper_contract ) )
254
+ Ok ( ( identity_address , identity_contract ) )
254
255
}
255
256
256
257
/// Deploys the Mock Token contract from [`LEADER`]
You can’t perform that action at this time.
0 commit comments