Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
@@ -60,7 +60,7 @@ macro_rules! vote_weight_record {
#[cfg(feature = "idl-build")]
impl anchor_lang::Discriminator for VoterWeightRecord {
- const DISCRIMINATOR: &[u8] = &[];
+ const DISCRIMINATOR: &'static [u8] = &[];
}
};
@@ -10,7 +10,7 @@ macro_rules! impl_idl_build {
//
// TODO: Find a better way to handle discriminators of wrapped external accounts.
impl anchor_lang::Discriminator for $ty {