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

Commit dd46194

Browse files
authored
Merge pull request #751 from chainbound/nico/fix/operator-extradata
fix(cli): sanitize extra-data during registration
2 parents 62aa708 + 34aed70 commit dd46194

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ 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 and trimming whitespace
149+
let extra_data = extra_data.trim_matches('"').trim_start().trim_end().to_string();
150+
148151
// TODO(nico): consolidate holesky & mainnet smart contracts
149152
if chain == Chain::Mainnet {
150153
let el_middleware =

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

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

72+
// Sanitize extra data removing quotes and trimming whitespace
73+
let extra_data = extra_data.trim_matches('"').trim_start().trim_end().to_string();
74+
7275
if chain == Chain::Mainnet {
7376
let middleware = BoltSymbioticMiddlewareMainnet::new(
7477
deployments.bolt.symbiotic_middleware,

0 commit comments

Comments
 (0)