Skip to content

Commit

Permalink
Update full-stack-solana-development.md (#180)
Browse files Browse the repository at this point in the history
* Update full-stack-solana-development.md

* chore: prettier

---------

Co-authored-by: nickfrosty <[email protected]>
  • Loading branch information
wzrdx and nickfrosty authored Apr 25, 2024
1 parent 2e87081 commit ac6cdc7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions content/guides/getstarted/full-stack-solana-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,12 @@ describe("counter", () => {
it("Is initialized!", async () => {
try {
const txSig = await program.methods.initialize().rpc();
const txSig = await program.methods
.initialize()
.accounts({
counter: counterPDA,
})
.rpc();
const accountData = await program.account.counter.fetch(counterPDA);
console.log(`Transaction Signature: ${txSig}`);
Expand All @@ -801,7 +806,12 @@ describe("counter", () => {
});
it("Increment", async () => {
const transactionSignature = await program.methods.increment().rpc();
const transactionSignature = await program.methods
.increment()
.accounts({
counter: counterPDA,
})
.rpc();
const accountData = await program.account.counter.fetch(counterPDA);
Expand Down

0 comments on commit ac6cdc7

Please sign in to comment.