Skip to content

Commit

Permalink
fix: add agreement:Builder::new(return_url: String) function
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeeispower committed Oct 3, 2023
1 parent e85adbe commit 57c2708
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/wallet_connect/agreement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 57c2708

Please sign in to comment.