Skip to content

Commit

Permalink
test: fix address list not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 28, 2024
1 parent 571265a commit 57c2871
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/rs-sdk/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ enum SdkInstance {
dapi: Arc<Mutex<MockDapiClient>>,
/// Mock SDK implementation processing mock expectations and responses.
mock: Arc<Mutex<MockDashPlatformSdk>>,

address_list: AddressList,
/// Platform version configured for this Sdk
version: &'static PlatformVersion,
},
Expand Down Expand Up @@ -558,9 +558,7 @@ impl Sdk {
match &self.inner {
SdkInstance::Dapi { dapi, .. } => dapi.address_list(),
#[cfg(feature = "mocks")]
SdkInstance::Mock { .. } => {
unimplemented!("mock Sdk does not have address list")
}
SdkInstance::Mock { address_list, .. } => address_list,
}
}
}
Expand Down Expand Up @@ -1020,10 +1018,11 @@ impl SdkBuilder {
let sdk= Sdk {
network: self.network,
dapi_client_settings: self.settings,
inner:SdkInstance::Mock {
mock:mock_sdk.clone(),
inner: SdkInstance::Mock {
mock: mock_sdk.clone(),
dapi,
version:self.version,
address_list: AddressList::new(),
version: self.version,
},
dump_dir: self.dump_dir.clone(),
proofs:self.proofs,
Expand Down

0 comments on commit 57c2871

Please sign in to comment.