Skip to content

Commit

Permalink
chore(evolve): use AO_CU_URL in evolve script
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Sep 12, 2024
1 parent 0ae056a commit 03b35a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
env:
WALLET: ${{ secrets.WALLET }}
IO_NETWORK_PROCESS_ID: ${{ vars.IO_NETWORK_PROCESS_ID }}

AO_CU_URL: ${{ vars.AO_CU_URL }}
- name: Notify Success
if: success()
uses: rtCamp/[email protected]
Expand Down
9 changes: 7 additions & 2 deletions tools/evolve.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { AOProcess, createAoSigner, ArweaveSigner } from '@ar.io/sdk/node';
import * as constants from './constants.mjs';
import { connect } from '@permaweb/aoconnect';

const processId = process.env.IO_NETWORK_PROCESS_ID;
const wallet = JSON.parse(process.env.WALLET);
const signer = createAoSigner(new ArweaveSigner(wallet));
const networkProcess = new AOProcess({ processId });
const networkProcess = new AOProcess({
processId: process.env.IO_NETWORK_PROCESS_ID,
ao: connect({
CU_URL: process.env.AO_CU_URL,
}),
});

const { id } = await networkProcess.send({
tags: [{ name: 'Action', value: 'Eval' }],
Expand Down

0 comments on commit 03b35a3

Please sign in to comment.