Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

A bit of fixing on hello_world.ts #639

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 4 additions & 19 deletions src/client/hello_world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,10 @@ import * as borsh from 'borsh';

import {getPayer, getRpcUrl, createKeypairFromFile} from './utils';

/**
* Connection to the network
*/
let connection: Connection;

/**
* Keypair associated to the fees' payer
*/
let payer: Keypair;

/**
* Hello world's program id
*/
let programId: PublicKey;

/**
* The public key of the account we are saying hello to
*/
let greetedPubkey: PublicKey;
let connection: Connection | undefined;
let payer: Keypair | undefined;
let programId: PublicKey | undefined;
let greetedPubkey: PublicKey | undefined;

/**
* Path to program files
Expand Down