Comments (5)
Here is an example on-chain where this happened on testnet
InitializeAccount: https://explorer.solana.com/tx/5Ep4euatukeYjqFSwaPfrNT8FTfkgeYkp5boCEBPNygb9kACU11Nn7Kpzrjru3VxyFWSqMyv5jYfim6Wp9VVYceT?cluster=testnet
Invalid mint account: https://explorer.solana.com/address/3ZE2ei22iLgivkeLZkmNVcTx3zPfkN7ALLx5MdeEJ2ss?cluster=testnet
from solana-program-library.
@jackcmay @CriesofCarrots @mvines thoughts?
from solana-program-library.
These token accounts are useless because without a valid mint, they can never hold a token balance.
The account can still be closed though. I feel like the client-side libraries could mostly mitigate this. I'm not opposed to adding a mint validity check in InitializeAccount.
Consider forcing mint accounts rent exempt so that token accounts are always valid
This should be client side IMO. I don't feel like we need to enforce that in the program.
from solana-program-library.
@CriesofCarrots - anything left to do here?
from solana-program-library.
Yes, still need the check for valid mint on InitializeAccount, coming soon
from solana-program-library.
Related Issues (20)
- `Token` type is `!Send + !Sync` HOT 6
- token-cli: Add priority fee support HOT 1
- spl-token library failing to run on client side HOT 1
- How to send tokens to multiple accountsin bulk HOT 1
- addExtraAccountMetasForExecute Error: Missing required account in instruction HOT 2
- single-pool: Remove usage of stake::config
- Update to ESLint 9.0 HOT 13
- token-cli: Priority fee support doesn't work
- Optimize Initialization Process in Concurrent Merkle Tree
- CLI spl-token update-metadata doesn't follow expected JSON format HOT 3
- `getOrCreateAssociatedTokenAccount` function returning error `TokenAccountNotFoundError` HOT 1
- spl-transfer-hook create-extra-metas : Result::unwrap()` on an `Err` value: Downcast HOT 10
- @solana/[email protected] causing ESM import errors HOT 8
- Transaction Simulation Fails Due to Invalid Account Data in spl-transfer-hook HOT 1
- Please support Wrapped SOL on Mantle network HOT 1
- @steveluscher, I mentioned package @solana/[email protected] not @solana/spl-token.
- token-2022: Token Metadata instructions do not automatically transfer SOL for rent HOT 1
- Feature: Add `createMemoInstruction` helper function to help with the required memo extension HOT 4
- spl-token initialize-metadata fails with Invalid instruction HOT 1
- Inconsistency between spl_associated_token_account::get_associated_token_address and @solana/spl-token getAssociatedTokenAddressSync HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solana-program-library.