complete-guide-to-full-stack-solana-development icon indicating copy to clipboard operation
complete-guide-to-full-stack-solana-development copied to clipboard

_baseAccount variable assigned but not declared

Open AlfieDarko opened this issue 3 years ago • 2 comments

Hey there,

having troubles with the test on this, there's a variable that is assigned but is not declared anywhere in the file

https://github.com/dabit3/complete-guide-to-full-stack-solana-development/blob/main/example1/tests/example1.js (line 24)

    _baseAccount = baseAccount;

but there is no declaration as shown on the test error Screenshot 2021-09-17 at 01 36 46 n,

AlfieDarko avatar Sep 17 '21 00:09 AlfieDarko

let _baseAccount; in the describe function block should fix that. This is used to store the account between both the tests for reuse.

munanadi avatar Sep 17 '21 08:09 munanadi

Thanks yeah I thought so. I'll make a PR with the correction

AlfieDarko avatar Sep 17 '21 10:09 AlfieDarko