You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new anchor version, you now need to directly use ctx.bump instead of using .get(). If your program still uses the .get() method, an error is not generated when attempting to build your program on solana playground. Instead, "building..." just hangs in the console and will never generate the method 'get' not found error.
Screenshot of building issue:
Successful build after removing this error from the code:
The text was updated successfully, but these errors were encountered:
It doesn't actually hang, the error message just gets filtered out. This was a false positive with detecting useless errors and was fixed in 6126b42 (but not yet deployed). I've just deployed it so it should work now.
There is a new "Improve build errors" setting to enable/disable this behavior (enabled by default).
With the new anchor version, you now need to directly use
ctx.bump
instead of using.get()
. If your program still uses the.get()
method, an error is not generated when attempting to build your program on solana playground. Instead, "building..." just hangs in the console and will never generate themethod 'get' not found
error.Screenshot of building issue:
![Screenshot of Firefox at Feb 27, 2024 at 12_15_28 PM](https://private-user-images.githubusercontent.com/85972460/308273292-95f0207a-466b-4380-a768-5d6f24c3d33f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyMTAzMjQsIm5iZiI6MTcyMDIxMDAyNCwicGF0aCI6Ii84NTk3MjQ2MC8zMDgyNzMyOTItOTVmMDIwN2EtNDY2Yi00MzgwLWE3NjgtNWQ2ZjI0YzNkMzNmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDIwMDcwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4MDg4NWQ2MTY3OGViYzMwNDZmMjhiMTUwYzllMTU5ODI5YzM4OWIwN2ZkYmM5OWYxMDEzZDBmYTcxNDUwMWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LO7O6oeUdl87w5WRKJJYV5MDZNH0HA3wmuIE19VDRhg)
Successful build after removing this error from the code:
![Screenshot of Firefox at Feb 27, 2024 at 12_16_09 PM](https://private-user-images.githubusercontent.com/85972460/308273553-44c020d8-5a58-4f01-a50a-a9bbda06e4d7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyMTAzMjQsIm5iZiI6MTcyMDIxMDAyNCwicGF0aCI6Ii84NTk3MjQ2MC8zMDgyNzM1NTMtNDRjMDIwZDgtNWE1OC00ZjAxLWE1MGEtYTliYmRhMDZlNGQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA1VDIwMDcwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZmODBiNWY5YzRjNmEwN2JiODE0MWNhZmJkZjA0ZDQ1YTQyMDc5MTlhY2ZjOTRlODcxMTZiMjc2NWM1NWZhNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._VyPv2DOdAsixm6QV43jn-h0jXjdoRlFrucilFHkTiI)
The text was updated successfully, but these errors were encountered: