Skip to content

Commit

Permalink
chore: address review
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Jan 29, 2025
1 parent 1a8f15c commit 34aed70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bolt-cli/src/commands/operators/eigenlayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ impl EigenLayerSubcommand {
let signature = Bytes::from(signer.sign_hash_sync(&signature_digest)?.as_bytes());
let signature = SignatureWithSaltAndExpiry { signature, expiry, salt };

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

// TODO(nico): consolidate holesky & mainnet smart contracts
if chain == Chain::Mainnet {
Expand Down
4 changes: 2 additions & 2 deletions bolt-cli/src/commands/operators/symbiotic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ impl SymbioticSubcommand {
);
}

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

if chain == Chain::Mainnet {
let middleware = BoltSymbioticMiddlewareMainnet::new(
Expand Down

0 comments on commit 34aed70

Please sign in to comment.