The test is passing, and I felt exhilarating, thanks a bunch!
@martatofan10892 жыл бұрын
Very helpful tutorial! Thanks!
@Banksy_said_hi3 жыл бұрын
This instruction is marvelous
@EatTheBlocks3 жыл бұрын
Thanks!
@GajeshSNaik4 жыл бұрын
Can I use remix to test smart contract?
@EatTheBlocks4 жыл бұрын
I think so but I Truffle is more suited for testing
4 жыл бұрын
Indeed! Truffle seems not intuitive at the beginning but, as you get more experience, you realize that it makes your life easier as developer.
@huckhopper62525 жыл бұрын
How do you pass in things like Msg.sender and Msg,value into your tests?
@EatTheBlocks5 жыл бұрын
you can customize web3 transactions like this: web3.methods.foo(/*args here*/).send({from: /*address here*/, value: /* amount of ether sent */})
@0f0crypto3 жыл бұрын
I followed the exact steps (up to ~9:00), but I get an error right away that the contract has not been deployed to the network ... so clearly there are some steps missing ... :(
@JunPrg3 жыл бұрын
Awesome... Thank you so much
@EatTheBlocks3 жыл бұрын
Most welcome 😊
@auroraiiit57654 жыл бұрын
at @22.41 how can we explicitly send 10 as uint parameter for the add function in the contract?
@cryptotester50423 жыл бұрын
Have you got an example on how to test a payable function with parameters?
@talhajavaid27782 жыл бұрын
having error says artifact not defined how do I fix it kindly help
@newborn78502 жыл бұрын
difference between assert and expect
@theemacsen15185 жыл бұрын
What are the vim plugins you use for Solidity?
@EatTheBlocks5 жыл бұрын
this one: github.com/TovarishFin/vim-solidity (its forked from an older plugin that is abandoned)
@theemacsen15185 жыл бұрын
@@EatTheBlocks Thank you
@rachelblack64074 жыл бұрын
Im curious, so the contract is only re-deployed after every contract block in the test file, not after each time an instance is created and deployed with contract.deploy()?
@EatTheBlocks4 жыл бұрын
The migration script is re-executed after each contract() block. But you can also manually deploy more contract instances with the deploy() method
@mullabro23 жыл бұрын
thank u
@EatTheBlocks3 жыл бұрын
Welcome
@jomoljaison15453 жыл бұрын
please do it in tronbox
@mudassir455 жыл бұрын
When ever I am running following test : 1. Should NOT update a non-existing user 2. Should destroy an existing user 3. Should NOT destroy a non-existing user. all these test fail and give this error: AssertionError: Unspecified AssertionError please help how to solve this
@EatTheBlocks5 жыл бұрын
Hey, thanks for reporting an error. However, Its impossible to help you with so little info. Please ask for help in the eattheblocks forum with the required info, as explained here: forum.eattheblocks.com/t/how-to-ask-for-help/62/2
@leykunejigu74773 жыл бұрын
Thank you for this awesome Tutorial. One question I got is, wouldn't it be better to define a function that returns crud.read() in the describe(contract) block and use it in the It blocks to avoid duplication.
@eyalhochstadt38783 жыл бұрын
I am trying to use the toNumber method, but get the result saying toNumber is not a function.
@justkaz7104 Жыл бұрын
464
@pjos29813 жыл бұрын
Sir I can get 100 subscriber if you teach us fullstack block chain developer course step by step