Skip to content

Commit

Permalink
fix: remove AlgorandClient memoize in AlgorandFixture
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell committed Aug 21, 2024
1 parent 2dad415 commit acde1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/fixtures/algorand-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function algorandFixture(fixtureConfig?: AlgorandFixtureConfig, config?:
Config.configure({ debug: true })
const transactionLogger = new TransactionLogger()
const transactionLoggerAlgod = transactionLogger.capture(algod)
algorandClient = algorandClient ?? AlgorandClient.fromClients({ algod: transactionLoggerAlgod, indexer, kmd })
algorandClient = AlgorandClient.fromClients({ algod: transactionLoggerAlgod, indexer, kmd })
const acc = await getTestAccount({ initialFunds: fixtureConfig?.testAccountFunding ?? algos(10), suppressLog: true }, algorandClient)
algorandClient.setSignerFromAccount(acc).setSuggestedParamsTimeout(0)
// If running against LocalNet we are likely in dev mode and we need to set a much higher validity window
Expand Down

0 comments on commit acde1a2

Please sign in to comment.