@metaplex-foundation/mpl-bubblegum
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -39,7 +39,10 @@ "use strict"; | ||
function computeCreatorHash(creators) { | ||
let bufferOfCreatorShares = Buffer.from([]); | ||
for (const creator of creators) { | ||
bufferOfCreatorShares = Buffer.concat([creator.address.toBuffer(), Buffer.from([creator.verified ? 1 : 0]), Buffer.from([creator.share])]); | ||
} | ||
return Buffer.from(js_sha3_1.keccak_256.digest(bufferOfCreatorShares)); | ||
const bufferOfCreatorData = Buffer.concat(creators.map((creator) => { | ||
return Buffer.concat([ | ||
creator.address.toBuffer(), | ||
Buffer.from([creator.verified ? 1 : 0]), | ||
Buffer.from([creator.share]), | ||
]); | ||
})); | ||
return Buffer.from(js_sha3_1.keccak_256.digest(bufferOfCreatorData)); | ||
} | ||
@@ -46,0 +49,0 @@ exports.computeCreatorHash = computeCreatorHash; |
{ | ||
"name": "@metaplex-foundation/mpl-bubblegum", | ||
"version": "0.6.2", | ||
"programVersion": "0.6.0", | ||
"version": "0.7.0", | ||
"programVersion": "0.8.0", | ||
"description": "SDK for MPL Bubblegum contract", | ||
@@ -48,3 +48,2 @@ "main": "dist/src/index.js", | ||
"@metaplex-foundation/mpl-token-metadata": "^2.5.2", | ||
"bn.js": "^5.2.0", | ||
"@solana/spl-account-compression": "^0.1.4", | ||
@@ -64,2 +63,3 @@ "@solana/spl-token": "^0.1.8", | ||
"@types/tape": "^4.13.2", | ||
"@types/bn.js": "^5.1.1", | ||
"@typescript-eslint/eslint-plugin": "^5.4.0", | ||
@@ -66,0 +66,0 @@ "@typescript-eslint/parser": "^5.4.0", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
223400
8
3758
28
1
- Removedbn.js@^5.2.0