fixed sdk-wasm build
This commit is contained in:
@@ -6,7 +6,7 @@ use log::warn;
|
||||
use nym_gateway_requests::BinaryResponse;
|
||||
use tungstenite::{protocol::Message, Error as WsError};
|
||||
|
||||
pub use client::{GatewayClient, GatewayConfig};
|
||||
pub use client::{config::GatewayClientConfig, GatewayClient, GatewayConfig};
|
||||
pub use nym_gateway_requests::registration::handshake::SharedKeys;
|
||||
pub use packet_router::{
|
||||
AcknowledgementReceiver, AcknowledgementSender, MixnetMessageReceiver, MixnetMessageSender,
|
||||
|
||||
@@ -18,7 +18,9 @@ pub use nym_client_core::*;
|
||||
pub use nym_client_core::{
|
||||
client::key_manager::ClientKeys, error::ClientCoreError, init::types::InitialisationResult,
|
||||
};
|
||||
pub use nym_gateway_client::{error::GatewayClientError, GatewayClient, GatewayConfig};
|
||||
pub use nym_gateway_client::{
|
||||
error::GatewayClientError, GatewayClient, GatewayClientConfig, GatewayConfig,
|
||||
};
|
||||
pub use nym_sphinx::{
|
||||
addressing::{clients::Recipient, nodes::NodeIdentity},
|
||||
params::PacketType,
|
||||
|
||||
@@ -33,8 +33,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, GatewayConfig, IdentityKey,
|
||||
InitialisationResult, NodeIdentity, NymTopology, QueryReqwestRpcNyxdClient, Recipient,
|
||||
nym_task, BandwidthController, ClientKeys, GatewayClient, GatewayClientConfig, GatewayConfig,
|
||||
IdentityKey, InitialisationResult, NodeIdentity, NymTopology, QueryReqwestRpcNyxdClient,
|
||||
Recipient,
|
||||
};
|
||||
use wasm_utils::check_promise_result;
|
||||
use wasm_utils::error::PromisableResult;
|
||||
@@ -201,6 +202,7 @@ impl NymNodeTesterBuilder {
|
||||
gateway_info.gateway_listener.to_string(),
|
||||
);
|
||||
GatewayClient::new(
|
||||
GatewayClientConfig::new_default().with_disabled_credentials_mode(true),
|
||||
cfg,
|
||||
managed_keys.identity_keypair(),
|
||||
Some(gateway_info.derived_aes128_ctr_blake3_hmac_keys),
|
||||
@@ -208,8 +210,7 @@ impl NymNodeTesterBuilder {
|
||||
self.bandwidth_controller.take(),
|
||||
gateway_task,
|
||||
)
|
||||
}
|
||||
.with_disabled_credentials_mode(true);
|
||||
};
|
||||
|
||||
gateway_client.authenticate_and_start().await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user