File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11import * as anchor from "@project-serum/anchor" ;
22import { Program } from "@project-serum/anchor" ;
33import { SolanaHelloWorld } from "../target/types/solana_hello_world" ;
4+ import * as assert from "assert" ;
45
56describe ( "solana-hello-world" , ( ) => {
6- // Configure the client to use the local cluster.
7- anchor . setProvider ( anchor . AnchorProvider . env ( ) ) ;
7+ const provider = anchor . AnchorProvider . env ( ) ;
8+ anchor . setProvider ( provider ) ;
89
9- const program = anchor . workspace . SolanaHelloWorld as Program < SolanaHelloWorld > ;
10-
11- it ( "Is initialized!" , async ( ) => {
12- // Add your test here.
13- const tx = await program . methods . initialize ( ) . rpc ( ) ;
14- console . log ( "Your transaction signature" , tx ) ;
15- } ) ;
10+ const program = anchor . workspace
11+ . SolanaHelloWorld as Program < SolanaHelloWorld > ;
1612} ) ;
You can’t perform that action at this time.
0 commit comments