@nina-protocol/nina-db 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,7 @@ export default class Release extends Model {
46
46
  const provider = new anchor.AnchorProvider(connection, {}, { commitment: 'processed' });
47
47
  const program = await anchor.Program.at(process.env.NINA_PROGRAM_ID, provider);
48
48
  const metaplex = new Metaplex(connection);
49
- const releaseAccount = await program.account.release.fetch(publicKey, 'confirmed');
49
+ const releaseAccount = await program.account.release.fetch(new anchor.web3.PublicKey(publicKey), 'confirmed');
50
50
  const metadataAccount = await metaplex.nfts().findByMint(releaseAccount.releaseMint, { commitment: "confirmed" }).run();
51
51
  let publisher = await Account.findOrCreate(releaseAccount.authority.toBase58());
52
52
  release = await this.createRelease({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -54,7 +54,7 @@ export default class Release extends Model {
54
54
  )
55
55
  const metaplex = new Metaplex(connection);
56
56
 
57
- const releaseAccount = await program.account.release.fetch(publicKey, 'confirmed')
57
+ const releaseAccount = await program.account.release.fetch(new anchor.web3.PublicKey(publicKey), 'confirmed')
58
58
  const metadataAccount = await metaplex.nfts().findByMint(releaseAccount.releaseMint, {commitment: "confirmed"}).run();
59
59
  let publisher = await Account.findOrCreate(releaseAccount.authority.toBase58());
60
60