Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create token-2022 ? #184

Open
kuchaguangjie opened this issue Jan 4, 2025 · 0 comments
Open

Create token-2022 ? #184

kuchaguangjie opened this issue Jan 4, 2025 · 0 comments

Comments

@kuchaguangjie
Copy link

kuchaguangjie commented Jan 4, 2025

Can this lib create token-2022 ?

I can create token, but when I change the mint account owner to common.Token2022ProgramID, get error:

rpc.JsonRpcError{
	Code:-32002,
	Message:"Transaction simulation failed: Error processing Instruction 1: instruction modified data of an account it does not own",
	Data:map[string]interface {}{"accounts":interface {}(nil), "err":map[string]interface {}{"InstructionError":[]interface {}{1, "ExternalAccountDataModified"}},
		"innerInstructions":interface {}(nil),
		"logs":[]interface {}{
			"Program 11111111111111111111111111111111 invoke [1]",
			"Program 11111111111111111111111111111111 success",
			"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]", 
			"Program log: Instruction: InitializeMint", 
			"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2919 of 399850 compute units", 
			"Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: instruction modified data of an account it does not own"
		 },
		 "replacementBlockhash":interface {}(nil),
		 "returnData":interface {}(nil), "unitsConsumed":3069
	}
}
@kuchaguangjie kuchaguangjie changed the title Support for token-2022 ? Create token-2022 ? Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant