33use serde:: { Deserialize , Serialize } ;
44use std:: collections:: HashSet ;
55
6- pub type ProcessAddress = String ;
6+ pub type ProcessAddress = crate :: Address ;
77pub type WalletAddress = String ;
88pub type ChainId = u64 ;
99pub type SessionId = String ;
@@ -861,7 +861,7 @@ pub enum UpdatableSetting {
861861
862862#[ derive( Debug , Clone , Serialize , Deserialize ) ]
863863pub struct ProcessPermissions {
864- pub process_address : ProcessAddress ,
864+ pub address : ProcessAddress ,
865865 pub allowed_operations : HashSet < Operation > ,
866866 pub spending_limits : Option < SpendingLimits > ,
867867 pub updatable_settings : Vec < UpdatableSetting > ,
@@ -870,9 +870,9 @@ pub struct ProcessPermissions {
870870
871871impl ProcessPermissions {
872872 /// Create new ProcessPermissions for a process during handshake registration
873- pub fn new ( process_address : String , required_operations : Vec < Operation > ) -> Self {
873+ pub fn new ( address : crate :: Address , required_operations : Vec < Operation > ) -> Self {
874874 Self {
875- process_address ,
875+ address ,
876876 allowed_operations : required_operations. into_iter ( ) . collect ( ) ,
877877 spending_limits : None ,
878878 updatable_settings : vec ! [ ] ,
0 commit comments