Skip to content

Commit

Permalink
Remove default audiusDataIdl from native libs (#4561)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored and isaacsolo committed Jan 5, 2023
1 parent 003463a commit 99aee6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion libs/src/AudiusLibs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ import type { BaseConstructorArgs } from './api/base'
import type { MonitoringCallbacks } from './services/types'
import { EntityManager } from './api/entityManager'

import { idl } from '@audius/anchor-audius-data'

type LibsIdentityServiceConfig = {
url: string
useHedgehogLocalStorage: boolean
Expand Down Expand Up @@ -305,7 +307,7 @@ export class AudiusLibs {
confirmationTimeout,
audiusDataAdminStorageKeypairPublicKey,
audiusDataProgramId,
audiusDataIdl
audiusDataIdl: audiusDataIdl || idl
}
}

Expand Down
3 changes: 1 addition & 2 deletions libs/src/services/solana/SolanaWeb3Manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import solanaWeb3, {
import type BN from 'bn.js'
import splToken from '@solana/spl-token'
import anchor, { Address, Idl, Program, Wallet } from '@project-serum/anchor'
import { idl } from '@audius/anchor-audius-data'

import { transferWAudioBalance } from './transfer'
import { getBankAccountAddress, createUserBankFrom } from './userBank'
Expand Down Expand Up @@ -228,7 +227,7 @@ export class SolanaWeb3Manager {
this.audiusDataAdminStorageKeypairPublicKey =
audiusDataAdminStorageKeypairPublicKey

this.audiusDataIdl = audiusDataIdl || idl
this.audiusDataIdl = audiusDataIdl

if (
this.audiusDataProgramId &&
Expand Down

0 comments on commit 99aee6b

Please sign in to comment.