Questions tagged [default]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
61 views

Is there a way to get Anchor to use enum defaults?

It seems that Anchor isn't using default values on enums. I create an account containing an enum with a Default, and don't set a value on that enum. Example lib.rs: #![feature(derive_default_enum)] ...
  • 1,723