Skip to content

Commit 21c406f

Browse files
authored
Merge pull request #22 from ionut-arm/getters
Add getters for auth_data and implicit_provider
2 parents 04788d6 + 2669ce0 commit 21c406f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/core/basic_client.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,21 @@ impl BasicClient {
180180
self.auth_data = auth_data;
181181
}
182182

183+
/// Retrieve authentication data of the client.
184+
pub fn auth_data(&self) -> AuthenticationData {
185+
self.auth_data.clone()
186+
}
187+
183188
/// Set the provider that the client will be implicitly working with.
184189
pub fn set_implicit_provider(&mut self, provider: ProviderID) {
185190
self.implicit_provider = provider;
186191
}
187192

193+
/// Retrieve client's implicit provider.
194+
pub fn implicit_provider(&self) -> ProviderID {
195+
self.implicit_provider
196+
}
197+
188198
/// **[Core Operation]** List the opcodes supported by the specified provider.
189199
pub fn list_provider_operations(&self, provider: ProviderID) -> Result<HashSet<Opcode>> {
190200
let res = self.op_client.process_operation(

0 commit comments

Comments
 (0)