Skip to content

Commit

Permalink
fix wasm client
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwicky committed Nov 13, 2024
1 parent b7463e5 commit b492490
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions common/wasm/client-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ nym-crypto = { path = "../../crypto", features = ["asymmetric", "serde"] }
nym-gateway-client = { path = "../../client-libs/gateway-client", default-features = false, features = ["wasm"] }
nym-sphinx = { path = "../../nymsphinx" }
nym-sphinx-acknowledgements = { path = "../../nymsphinx/acknowledgements", features = ["serde"]}
nym-statistics-common = { path = "../../statistics" }
nym-task = { path = "../../task" }
nym-topology = { path = "../../topology", features = ["serializable", "wasm-serde-types"] }
nym-validator-client = { path = "../../client-libs/validator-client", default-features = false }
Expand Down
1 change: 1 addition & 0 deletions common/wasm/client-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub use nym_sphinx::{
params::PacketType,
receiver::ReconstructedMessage,
};
pub use nym_statistics_common::clients::ClientStatsSender;
pub use nym_task;
pub use nym_topology::{HardcodedTopologyProvider, MixLayer, NymTopology, TopologyProvider};
pub use nym_validator_client::nym_api::Client as ApiClient;
Expand Down
8 changes: 5 additions & 3 deletions wasm/node-tester/src/tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ use wasm_client_core::helpers::{
use wasm_client_core::storage::ClientStorage;
use wasm_client_core::topology::SerializableNymTopology;
use wasm_client_core::{
nym_task, BandwidthController, ClientKeys, GatewayClient, GatewayClientConfig, GatewayConfig,
IdentityKey, InitialisationResult, NodeIdentity, NymTopology, QueryReqwestRpcNyxdClient,
Recipient,
nym_task, BandwidthController, ClientKeys, ClientStatsSender, GatewayClient,
GatewayClientConfig, GatewayConfig, IdentityKey, InitialisationResult, NodeIdentity,
NymTopology, QueryReqwestRpcNyxdClient, Recipient,
};
use wasm_utils::check_promise_result;
use wasm_utils::error::PromisableResult;
Expand Down Expand Up @@ -194,6 +194,7 @@ impl NymNodeTesterBuilder {
existing_client.upgrade(
packet_router,
self.bandwidth_controller.take(),
ClientStatsSender::new(None),
gateway_task,
)
} else {
Expand All @@ -209,6 +210,7 @@ impl NymNodeTesterBuilder {
Some(gateway_info.shared_key),
packet_router,
self.bandwidth_controller.take(),
ClientStatsSender::new(None),
gateway_task,
)
};
Expand Down

0 comments on commit b492490

Please sign in to comment.