Skip to content

Commit c6e9d09

Browse files
committed
PR review fixes
1 parent 7b74007 commit c6e9d09

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

primitives/src/test_util.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,70 +13,70 @@ pub static ADVERTISER: Lazy<Address> = Lazy::new(|| *ADDRESS_4);
1313
pub static PUBLISHER: Lazy<Address> = Lazy::new(|| *ADDRESS_5);
1414
pub static GUARDIAN_2: Lazy<Address> = Lazy::new(|| *ADDRESS_6);
1515

16-
/// passhprase: ganache0
16+
/// passphrase: ganache0
1717
pub static ADDRESS_0: Lazy<Address> = Lazy::new(|| {
1818
b"0x80690751969B234697e9059e04ed72195c3507fa"
1919
.try_into()
2020
.unwrap()
2121
});
2222

23-
/// passhprase: ganache1
23+
/// passphrase: ganache1
2424
pub static ADDRESS_1: Lazy<Address> = Lazy::new(|| {
2525
b"0xf3f583AEC5f7C030722Fe992A5688557e1B86ef7"
2626
.try_into()
2727
.unwrap()
2828
});
2929

30-
/// passhprase: ganache2
30+
/// passphrase: ganache2
3131
pub static ADDRESS_2: Lazy<Address> = Lazy::new(|| {
3232
b"0xe061E1EB461EaBE512759aa18A201B20Fe90631D"
3333
.try_into()
3434
.unwrap()
3535
});
3636

37-
/// passhprase: ganache3
37+
/// passphrase: ganache3
3838
pub static ADDRESS_3: Lazy<Address> = Lazy::new(|| {
3939
b"0xaCBaDA2d5830d1875ae3D2de207A1363B316Df2F"
4040
.try_into()
4141
.unwrap()
4242
});
4343

44-
/// passhprase: ganache4
44+
/// passphrase: ganache4
4545
pub static ADDRESS_4: Lazy<Address> = Lazy::new(|| {
4646
b"0xDd589B43793934EF6Ad266067A0d1D4896b0dff0"
4747
.try_into()
4848
.unwrap()
4949
});
5050

51-
/// passhprase: ganache5
51+
/// passphrase: ganache5
5252
pub static ADDRESS_5: Lazy<Address> = Lazy::new(|| {
5353
b"0xE882ebF439207a70dDcCb39E13CA8506c9F45fD9"
5454
.try_into()
5555
.unwrap()
5656
});
5757

58-
/// passhprase: ganache6
58+
/// passphrase: ganache6
5959
pub static ADDRESS_6: Lazy<Address> = Lazy::new(|| {
6060
b"0x79D358a3194d737880B3eFD94ADccD246af9F535"
6161
.try_into()
6262
.unwrap()
6363
});
6464

65-
/// passhprase: ganache7
65+
/// passphrase: ganache7
6666
pub static ADDRESS_7: Lazy<Address> = Lazy::new(|| {
6767
b"0x0e880972A4b216906F05D67EeaaF55d16B5EE4F1"
6868
.try_into()
6969
.unwrap()
7070
});
7171

72-
/// passhprase: ganache8
72+
/// passphrase: ganache8
7373
pub static ADDRESS_8: Lazy<Address> = Lazy::new(|| {
7474
b"0x541b401362Ea1D489D322579552B099e801F3632"
7575
.try_into()
7676
.unwrap()
7777
});
7878

79-
/// passhprase: ganache9
79+
/// passphrase: ganache9
8080
pub static ADDRESS_9: Lazy<Address> = Lazy::new(|| {
8181
b"0x6B83e7D6B72c098d48968441e0d05658dc17Adb9"
8282
.try_into()

validator_worker/src/sentry_interface.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,10 @@ impl<A: Adapter + 'static, P> SentryApi<A, P> {
246246

247247
assert_eq!(reqwest::StatusCode::OK, response.status());
248248

249-
Ok(response
249+
response
250250
.json::<AccountingResponse<CheckedState>>()
251251
.map_err(Error::Request)
252-
.await?)
252+
.await
253253
}
254254

255255
/// Fetches all `Campaign`s from the _Who am I_ Sentry.

validator_worker/src/worker.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ pub struct Worker<A: Adapter> {
2121
}
2222

2323
impl<A: Adapter + 'static> Worker<A> {
24-
// /// Requires an unlocked [`Adapter`]
25-
// /// Before running, unlocks the adapter using [`Adapter::unlock`]!
24+
/// Requires an unlocked [`Adapter`]
2625
pub fn from_sentry(sentry: SentryApi<A, ()>) -> Self {
2726
Self {
2827
config: sentry.config.clone(),

0 commit comments

Comments
 (0)