Skip to content

Commit

Permalink
fix(examples): update examples to use devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Feb 24, 2024
1 parent b2529a7 commit cc037ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/node/index.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { ArIO } = require('../../../lib/cjs/node/index.js');
const { ArIO } = require('../../lib/cjs/node/index.js');

(async () => {
const arIO = new ArIO({});
// testnet gateways
const testnetGateways = await arIO.testnet.getGateways();
// mainnet gateways
const devnetGateways = await arIO.mainnet.getGateways();
const devnetGateways = await arIO.devnet.getGateways();

console.dir({ testnetGateways, devnetGateways }, { depth: 2 });
})();
2 changes: 1 addition & 1 deletion examples/node/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ArIO } from '../../lib/esm/node/index.js';
// testnet gateways
const testnetGateways = await arIO.testnet.getGateways();
// mainnet gateways
const devnetGateways = await arIO.mainnet.getGateways();
const devnetGateways = await arIO.devnet.getGateways();

console.dir({ testnetGateways, devnetGateways }, { depth: 2 });
})();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"scripts": {
"build:web": "node bundle.mjs",
"build:esm": "yarn tsc -p tsconfig.json",
"build:cjs": "yarn tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",
"build:cjs": "yarn tsc -p tsconfig.cjs.json && echo {\"type\": \"commonjs\"} > lib/cjs/package.json",
"build": "yarn clean && yarn build:web && yarn build:esm && yarn build:cjs",
"clean": "rimraf [ lib coverage bundles ]",
"lint": "eslint src",
Expand Down

0 comments on commit cc037ac

Please sign in to comment.