Skip to content

Commit ac25094

Browse files
committed
adapter - ethereum - test_util - deploy_identity typos
1 parent 7a10119 commit ac25094

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

adapter/src/ethereum/test_util.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ pub async fn deploy_outpace_contract(
223223
Ok((outpace_address, outpace_contract))
224224
}
225225

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
227228
pub async fn deploy_identity_contract(
228229
web3: &Web3<Http>,
229230
for_address: Address,
@@ -234,8 +235,8 @@ pub async fn deploy_identity_contract(
234235
.map(|a| Token::Address(H160(a.to_bytes())))
235236
.collect();
236237

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")
239240
.confirmations(0)
240241
.options(Options::with(|opt| {
241242
opt.gas_price = Some(1.into());
@@ -248,9 +249,9 @@ pub async fn deploy_identity_contract(
248249
)
249250
.await?;
250251

251-
let sweeper_address = Address::from(sweeper_contract.address().to_fixed_bytes());
252+
let identity_address = Address::from(identity_contract.address().to_fixed_bytes());
252253

253-
Ok((sweeper_address, sweeper_contract))
254+
Ok((identity_address, identity_contract))
254255
}
255256

256257
/// Deploys the Mock Token contract from [`LEADER`]

0 commit comments

Comments
 (0)