[Solved] TypeError: Cannot read properties of undefined (reading ‘equal’) [closed]

You didn’t close the parenthesis around the expect calls in the second test correctly. You’re accessing .to on the number returned by .balanceOf. Replace with: expect(await hardhatToken.balanceOf(addr1.address)).to.equal(10); // … expect(await hardhatToken.balanceOf(addr2.address)).to.equal(5); 2 solved TypeError: Cannot read properties of undefined (reading ‘equal’) [closed]

[Solved] Solana CPI (runtime) invoke fails when creating a new account by system_instruction::create_account (on-chain program with anchor framework)

I realized the issue: I did not pass the system_program into instruction. pub system_program: Program<‘info, System> Need to use invoke_signed to also let pda to sign invoke_signed( &create_acc_ix, &[ self.minter.clone(), self.mint_pda_acc.clone(), ], &[&[ &mint_seed.as_ref(), &[*bump_seed] ]] )?; solved Solana CPI (runtime) invoke fails when creating a new account by system_instruction::create_account (on-chain program with anchor framework)

[Solved] How should i start learning code of any cryptocurrency? [closed]

Well, you should not start learning by looking at someone else’s source code. The only real way to learn about blockchain programming is to take isolated problems and try to implement it yourself in minimum examples. You can start by coding each one of them separately in its own example application: Blockchain data structures and … Read more