Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 1069
4 votes
3 answers
2k views

Anchor IDL address missing from json

Is it just me or did the "metadata": {"address: Pubkey} key-value pair from the generated json disappear when running anchor build?
Burger Bob's user avatar
  • 1,506
2 votes
2 answers
109 views

Using the #[constant] macro in anchor depending on feature flag

Does anyone know if there is a method to produce an IDL that has different constants depending on the feature flag? … devnet_constants::*; #[cfg(feature = "mainnet")] pub mod mainnet_constants; #[cfg(feature = "mainnet"))] pub use mainnet_constants::*; Although both versions of the constants appear in the outputted IDL
Burger Bob's user avatar
  • 1,506