Skip to content

Commit

Permalink
Add deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Neotamandua committed Aug 21, 2024
1 parent 9257c3c commit 3ca0471
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions piecrust/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ impl<'a, A> ContractDataBuilder<'a, A> {
}
}

/// Deprecated: Use `init_arg` instead.
#[deprecated(
note = "Use `init_arg` instead of `constructor_arg`"
)]
pub fn constructor_arg<B>(self, arg: &B) -> ContractDataBuilder<B> {
self.init_arg(arg)
}


/// Set the owner of the contract.
pub fn owner(mut self, owner: impl Into<Vec<u8>>) -> Self {
self.owner = Some(owner.into());
Expand Down

0 comments on commit 3ca0471

Please sign in to comment.