Skip to content

Commit b86be55

Browse files
author
Ivo Georgiev
committed
Use checksummed strings when requesting from Sentry and for adapter signatures
1 parent c4efc12 commit b86be55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adapter/src/dummy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl Adapter for DummyAdapter {
4343
let signature = format!(
4444
"Dummy adapter signature for {} by {}",
4545
state_root,
46-
self.whoami()
46+
self.whoami().to_hex_checksummed_string()
4747
);
4848
Ok(signature)
4949
}
@@ -57,7 +57,7 @@ impl Adapter for DummyAdapter {
5757
// select the `identity` and compare it to the signer
5858
// for empty string this will return array with 1 element - an empty string `[""]`
5959
let is_same = match signature.rsplit(' ').take(1).next() {
60-
Some(from) => from == signer.to_string(),
60+
Some(from) => from == signer.to_hex_checksummed_string(),
6161
None => false,
6262
};
6363

validator_worker/src/sentry_interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<T: Adapter + 'static> SentryApi<T> {
9696
let url = format!(
9797
"{}/validator-messages/{}/{}?limit=1",
9898
self.validator_url,
99-
from.to_string(),
99+
from.to_hex_checksummed_string(),
100100
message_type
101101
);
102102
let result = self

0 commit comments

Comments
 (0)