Skip to content

Commit

Permalink
fix: update to latest gadget
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjemmmic committed Nov 1, 2024
1 parent e045b41 commit 6010ea5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,17 @@ tempfile = "3.10.1"
[dependencies.gadget-sdk]
# version = "0.1.2"
git = "https://github.com/webb-tools/gadget"
branch = "donovan/avs-updates"
default-features = false
features = ["std", "getrandom"]

[dependencies.gadget-io]
# version = "0.1.2"
git = "https://github.com/webb-tools/gadget"
branch = "donovan/avs-updates"
default-features = false
features = ["std"]

[dev-dependencies]
blueprint-test-utils = { git = "https://github.com/webb-tools/gadget", branch = "donovan/avs-updates" }
blueprint-test-utils = { git = "https://github.com/webb-tools/gadget" }

[lib]
path = "src/lib.rs"
Expand Down
11 changes: 6 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,22 @@ mod tests {
.await
.unwrap();
info!(
"Transfered {anvil_tx_amount} from {:?} to {:?}\n\tHash: {:?}",
"Transferred {anvil_tx_amount} from {:?} to {:?}\n\tHash: {:?}",
alloy_sender,
operator_ecdsa_signer.alloy_address(),
tx_hash
);

// Tangle node url/port
let ws_tangle_url = Url::parse("ws://127.0.0.1:9948").unwrap();
let bind_port = ws_tangle_url.clone().port().unwrap();
let target_port = ws_tangle_url.clone().port().unwrap();

// Create the GadgetConfiguration
let config = ContextConfig {
gadget_core_settings: GadgetCLICoreSettings::Run {
bind_addr: IpAddr::from_str("127.0.0.1").unwrap(),
bind_port,
target_addr: IpAddr::from_str("127.0.0.1").unwrap(),
target_port,
use_secure_url: false,
test_mode: false,
log_id: None,
http_rpc_url: Url::parse(&http_endpoint).unwrap(),
Expand All @@ -255,7 +256,7 @@ mod tests {
keystore_password: None,
blueprint_id: Some(0),
service_id: Some(0),
skip_registration: Some(true),
skip_registration: false,
protocol: Protocol::Eigenlayer,
registry_coordinator: Some(REGISTRY_COORDINATOR_ADDR),
operator_state_retriever: Some(OPERATOR_STATE_RETRIEVER_ADDR),
Expand Down

0 comments on commit 6010ea5

Please sign in to comment.