From 4937a3b3d0940a5b32965d8ff6cdede668faa95f Mon Sep 17 00:00:00 2001 From: Shadowstrike <148655543+Shadowstrike-code@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:24:17 +0100 Subject: [PATCH] A bit of fixing on hello_world.ts Added Undefined --- src/client/hello_world.ts | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/client/hello_world.ts b/src/client/hello_world.ts index 3e33f9e4..f27a9027 100644 --- a/src/client/hello_world.ts +++ b/src/client/hello_world.ts @@ -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