Identity com bugfix/robust fetch nullable#2301
Conversation
|
Someone is attempting to deploy a commit to the coral-xyz Team on Vercel. A member of the Team first needs to authorize it. |
…:Henry-E/anchor into Henry-E-identity-com-bugfix/robust-fetchNullable
2d49524 to
8ab5236
Compare
|
Are there any cases where this wouldn't work? Could this be improved by checking the owner to check if its owned by the system program? |
|
To be honest I'm not even sure what fetchNullable is for. But it seems unlikely that this would just be useful for system program accounts maybe? There could be program owned accounts that just store solana and no data. Though again, I'm not really very familiar with this function. @rado0x54 might be able to comment on what the use cases are that they've been using it for? |
|
Ok, given that the definition of |
* ts: Fixed `.fetchNullable()` to be robust towards accounts only holding a balance * update changelog to new PR id * prettier Co-authored-by: Martin Riedel <web@riedel-it.de> Co-authored-by: henrye <henry@notanemail>
#2174
Had to create a new PR because the original came from a company account which couldn't accept changes from maintainers.