-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(eigen-client-extra-features): address comments #383
base: eigen-client-extra-features
Are you sure you want to change the base?
fix(eigen-client-extra-features): address comments #383
Conversation
@@ -30,7 +32,7 @@ impl Default for EigenConfig { | |||
disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), | |||
settlement_layer_confirmation_depth: 0, | |||
eigenda_eth_rpc: Some("https://ethereum-holesky-rpc.publicnode.com".to_string()), | |||
eigenda_svc_manager_address: "0xD4A7E1Bd8015057293f0D0A557088c286942e84b".to_string(), | |||
eigenda_svc_manager_address: H160::from_str("0xD4A7E1Bd8015057293f0D0A557088c286942e84b").unwrap(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe avoid the unwrap, with an unwrap_or and a H160::zero
maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion, done!
pub enum VerificationError { | ||
#[error("Service manager error")] | ||
ServiceManagerError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to include the service manager error here?
DifferentHashes, | ||
#[error("Different hashes: expected {expected:?}, got {actual:?}")] | ||
DifferentHashes { expected: String, actual: String }, | ||
#[error("Wrong quorum params")] | ||
WrongQuorumParams, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to know which params are wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! I have modified the error so it shows them.
#[error("Link Error: {0}")] | ||
LinkError(String), | ||
#[error(transparent)] | ||
JoinError(#[from] tokio::task::JoinError), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should map the join error to a different and existing error variant instead of adding it to the VerificationError
@@ -30,7 +32,7 @@ impl Default for EigenConfig { | |||
disperser_rpc: "https://disperser-holesky.eigenda.xyz:443".to_string(), | |||
settlement_layer_confirmation_depth: 0, | |||
eigenda_eth_rpc: Some("https://ethereum-holesky-rpc.publicnode.com".to_string()), | |||
eigenda_svc_manager_address: "0xD4A7E1Bd8015057293f0D0A557088c286942e84b".to_string(), | |||
eigenda_svc_manager_address: H160::from_str("0xD4A7E1Bd8015057293f0D0A557088c286942e84b").unwrap_or_default(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move this to a constant and specify what contract it is (EigenDA service manager in Holesky)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
What ❔
Attemp to resolve all comments left after last round of reviews of
extra-features
PR.Why ❔
Checklist
zkstack dev fmt
andzkstack dev lint
.