Skip to content

Commit ef7c46d

Browse files
committed
Fix program keypair file and add assertions to verify program output
1 parent bbcbccd commit ef7c46d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

basics/hello-solana/native/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"test": "pnpm ts-mocha -p ./tsconfig.json -t 1000000 ./tests/test.ts",
44
"build-and-test": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./tests/fixtures && pnpm test",
55
"build": "cargo build-sbf --manifest-path=./program/Cargo.toml --sbf-out-dir=./program/target/so",
6-
"deploy": "solana program deploy ./program/target/so/program.so"
6+
"deploy": "solana program deploy ./program/target/so/hello_solana_program.so"
77
},
88
"dependencies": {
99
"@solana/web3.js": "^1.47.3"

basics/hello-solana/native/tests/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
asdfasdg
12
import {
23
PublicKey,
34
Transaction,
@@ -27,6 +28,7 @@ describe('hello-solana', async () => {
2728
tx.add(ix).sign(payer);
2829

2930
// Now we process the transaction
30-
await client.processTransaction(tx);
31+
let transaction = await client.processTransaction(tx);
32+
console.log(transaction?.meta?.logMessages);
3133
});
3234
});

0 commit comments

Comments
 (0)