Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
juchiast committed Jan 21, 2025
1 parent c1d2e4f commit 35daa4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions @space-operator/client/tests/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ const run = async () => {
const id = await c.deployFlow(3643);

const keypair = web3.Keypair.generate();

const connection = new web3.Connection("https://api.devnet.solana.com");
if ((await connection.getBalance(keypair.publicKey)) == 0) {
console.log("request airdrop");
await connection.requestAirdrop(keypair.publicKey, web3.LAMPORTS_PER_SOL);
while ((await connection.getBalance(keypair.publicKey)) == 0) {}
}

c.setToken(keypair.publicKey.toString());
const { flow_run_id, token } = await c.startDeployment(
{
Expand Down

0 comments on commit 35daa4e

Please sign in to comment.