diff --git a/src/wallet_connect/agreement.rs b/src/wallet_connect/agreement.rs index 33c86ee..71dad86 100644 --- a/src/wallet_connect/agreement.rs +++ b/src/wallet_connect/agreement.rs @@ -110,6 +110,16 @@ pub struct Agreement { agreement_uri: String, } impl Agreement { + pub fn new(return_url: String) -> Self { + Self { + return_url, + client_id: None, + platform_id: None, + agreement_data: None, + external_flow_id:None, + external_user: None, + } + } /// Returns a reference to the agreement id in Self #[must_use] pub fn id(&self) -> &str {