Use edition number in data (#171)

This call is not used anywhere yet, but it might be in the future...
This commit is contained in:
praskoson 2021-07-31 18:35:36 +02:00 committed by GitHub
parent 7a01f3c650
commit 877e53c1b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ export async function mintNewEditionFromMasterEditionViaToken(
const masterEdition = await getEdition(tokenMint);
const editionMarkPda = await getEditionMarkPda(tokenMint, edition);
const data = Buffer.from([11]);
const data = Buffer.from([11, ...edition.toArray('le', 8)]);
const keys = [
{