Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 34aed70

Browse files
committed
chore: address review
1 parent 1a8f15c commit 34aed70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bolt-cli/src/commands/operators/eigenlayer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ impl EigenLayerSubcommand {
145145
let signature = Bytes::from(signer.sign_hash_sync(&signature_digest)?.as_bytes());
146146
let signature = SignatureWithSaltAndExpiry { signature, expiry, salt };
147147

148-
// Sanitize extra data removing quotes
149-
let extra_data = extra_data.trim_matches('"').to_string();
148+
// Sanitize extra data removing quotes and trimming whitespace
149+
let extra_data = extra_data.trim_matches('"').trim_start().trim_end().to_string();
150150

151151
// TODO(nico): consolidate holesky & mainnet smart contracts
152152
if chain == Chain::Mainnet {

bolt-cli/src/commands/operators/symbiotic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ impl SymbioticSubcommand {
6969
);
7070
}
7171

72-
// Sanitize extra data removing quotes
73-
let extra_data = extra_data.trim_matches('"').to_string();
72+
// Sanitize extra data removing quotes and trimming whitespace
73+
let extra_data = extra_data.trim_matches('"').trim_start().trim_end().to_string();
7474

7575
if chain == Chain::Mainnet {
7676
let middleware = BoltSymbioticMiddlewareMainnet::new(

0 commit comments

Comments
 (0)