Skip to content

Commit d402194

Browse files
committed
Address
1 parent 8d0b289 commit d402194

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/hyperwallet_client/types.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use serde::{Deserialize, Serialize};
44
use std::collections::HashSet;
55

6-
pub type ProcessAddress = String;
6+
pub type ProcessAddress = crate::Address;
77
pub type WalletAddress = String;
88
pub type ChainId = u64;
99
pub type SessionId = String;
@@ -861,7 +861,7 @@ pub enum UpdatableSetting {
861861

862862
#[derive(Debug, Clone, Serialize, Deserialize)]
863863
pub 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

871871
impl 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

Comments
 (0)