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

how to decode the instruction.data? #145

Open
yangyile1990 opened this issue Aug 15, 2023 · 1 comment
Open

how to decode the instruction.data? #145

yangyile1990 opened this issue Aug 15, 2023 · 1 comment

Comments

@yangyile1990
Copy link

yangyile1990 commented Aug 15, 2023

type TokenInstructParam struct {
Instruction token.Instruction
Amount uint64
Decimals uint8
}

type TransferInstructParam struct {
Instruction system.Instruction
Lamports uint64
}

@yangyile1990
Copy link
Author

I knew it.

type TokenInstructParam struct {
Instruction token.Instruction
Amount uint64
Decimals uint8
}

type TransferInstructParam struct {
Instruction system.Instruction
Lamports uint64
}

the system.Instruction not equals the token.Instruction

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