@@ -26,7 +26,7 @@ use identity_iota::iota::rebased::transaction::Transaction;
2626use iota_sdk_legacy:: client:: secret:: stronghold:: StrongholdSecretManager ;
2727use iota_sdk_legacy:: client:: stronghold:: StrongholdAdapter ;
2828use iota_sdk_legacy:: client:: Password ;
29- use iota_sdk :: types :: base_types :: IotaAddress ;
29+ use iota_sdk_types :: Address ;
3030use iota_sdk:: IotaClient ;
3131use iota_sdk:: IotaClientBuilder ;
3232use iota_sdk_types:: ObjectId ;
@@ -125,7 +125,7 @@ impl TestServer {
125125pub async fn create_did < K , I > (
126126 client : & IdentityClientReadOnly ,
127127 storage : & Storage < K , I > ,
128- ) -> anyhow:: Result < ( IotaAddress , IotaDocument , KeyId , String ) >
128+ ) -> anyhow:: Result < ( Address , IotaDocument , KeyId , String ) >
129129where
130130 K : JwkStorage ,
131131 I : KeyIdStorage ,
@@ -179,7 +179,7 @@ where
179179}
180180
181181/// Generates a new Ed25519 key pair
182- pub async fn get_address < I , K > ( storage : & Storage < K , I > ) -> anyhow:: Result < ( IotaAddress , KeyId , Jwk ) >
182+ pub async fn get_address < I , K > ( storage : & Storage < K , I > ) -> anyhow:: Result < ( Address , KeyId , Jwk ) >
183183where
184184 K : JwkStorage ,
185185 I : KeyIdStorage ,
@@ -198,11 +198,11 @@ where
198198
199199 let address = Ed25519PublicKey :: from_bytes ( & pub_key_bytes) ?;
200200
201- Ok ( ( IotaAddress :: from ( & address) , key_id, pub_key_jwt) )
201+ Ok ( ( Address :: from ( & address) , key_id, pub_key_jwt) )
202202}
203203
204204/// Requests funds from the faucet for the given `address`.
205- async fn request_faucet_funds ( address : IotaAddress , faucet_endpoint : & str ) -> anyhow:: Result < ( ) > {
205+ async fn request_faucet_funds ( address : Address , faucet_endpoint : & str ) -> anyhow:: Result < ( ) > {
206206 let output = Command :: new ( "iota" )
207207 . arg ( "client" )
208208 . arg ( "faucet" )
@@ -228,7 +228,7 @@ async fn request_faucet_funds(address: IotaAddress, faucet_endpoint: &str) -> an
228228
229229pub struct Entity < K , I > {
230230 storage : Storage < K , I > ,
231- did : Option < ( IotaAddress , IotaDocument , KeyId , String ) > ,
231+ did : Option < ( Address , IotaDocument , KeyId , String ) > ,
232232}
233233
234234pub fn random_password ( len : usize ) -> Password {
@@ -323,15 +323,15 @@ pub fn make_stronghold() -> StrongholdAdapter {
323323 . expect ( "Failed to create temporary stronghold" )
324324}
325325
326- async fn get_active_address ( ) -> anyhow:: Result < IotaAddress > {
326+ async fn get_active_address ( ) -> anyhow:: Result < Address > {
327327 Command :: new ( "iota" )
328328 . arg ( "client" )
329329 . arg ( "active-address" )
330330 . arg ( "--json" )
331331 . output ( )
332332 . await
333333 . context ( "Failed to execute command" )
334- . and_then ( |output| Ok ( serde_json:: from_slice :: < IotaAddress > ( & output. stdout ) ?) )
334+ . and_then ( |output| Ok ( serde_json:: from_slice :: < Address > ( & output. stdout ) ?) )
335335}
336336
337337async fn init ( iota_client : & IotaClient ) -> anyhow:: Result < ObjectId > {
@@ -361,7 +361,7 @@ async fn get_cached_id(network_id: &str) -> anyhow::Result<String> {
361361 }
362362}
363363
364- async fn publish_package ( active_address : IotaAddress ) -> anyhow:: Result < ObjectId > {
364+ async fn publish_package ( active_address : Address ) -> anyhow:: Result < ObjectId > {
365365 let output = Command :: new ( "sh" )
366366 . current_dir ( SCRIPT_DIR )
367367 . arg ( "publish_identity_package.sh" )
0 commit comments