Export decode token instructions function (#17)

Export decode token instructions function
This commit is contained in:
philippe-ftx 2020-09-14 09:30:19 +02:00 committed by GitHub
parent e417f0bf43
commit 13e2eb0e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ function encodeTokenInstructionData(instruction) {
return b.slice(0, span);
}
export function decodeTokenInstructionData(instruction) {
return LAYOUT.decode(instruction);
}
export function initializeMint({
mint,
decimals,