Skip to content

Commit

Permalink
fix(ario): make state provider nullable and default to remote arns-se…
Browse files Browse the repository at this point in the history
…rvice provider
  • Loading branch information
atticusofsparta committed Feb 15, 2024
1 parent 68a5a16 commit fa1cb72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/common/ar-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { ContractCache } from '../types.js';
import { ArNSRemoteCache } from './index.js';

export class ArIO implements ContractCache {
private contractStateProvider: ContractCache;

constructor({
contractStateProvider,
contractStateProvider = new ArNSRemoteCache({}),
}: {
contractStateProvider: ContractCache;
contractStateProvider?: ContractCache;
}) {
this.contractStateProvider = contractStateProvider;
}
Expand Down

0 comments on commit fa1cb72

Please sign in to comment.