Skip to content

Commit

Permalink
test: Support generic field in contract
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Nov 13, 2023
1 parent aeec1ff commit 3f41ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/contracts/generic_contract/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ where
RetType: CustomMsg + DeserializeOwned + 'static,
FieldType: 'static,
{
pub fn new() -> Self {
pub const fn new() -> Self {
Self {
_field: Item::new("field"),
_phantom: std::marker::PhantomData,
Expand Down

0 comments on commit 3f41ffa

Please sign in to comment.