-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Testing basic contract on truffle #5179
Comments
Hi, @pbirbarah do you have a public repository or full code snippet of Test_Payment.sol? I would like to assist you with the blocker you're facing thank you. |
thanks a lot. please use this link https://www.toptal.com/developers/hastebin/vofixocoxi.php |
@pbirbarah Sounds great thank you, I will let you know what I find and we can go over the solution |
Hi, @pbirbarah I performed unit tests for the
|
@pbirbarah How are you deploying your contract do you have a code snippet? |
@pbirbarah Alright I will try with Truffle and let you know |
@pbirbarah Before I deployed the contract and invoked the
|
@pbirbarah I was able to successfully deploy TestPayment.sol locally with |
this is very helpful thank you. How can I specify which address to send from using the console? and can I check the balance on the address using the console? |
@pbirbarah The Truffle console supports the |
@pbirbarah Here is how you can check the ETH balance from one of the accounts |
that is perfect! thanks! |
@pbirbarah No problem take care |
Discussed in https://github.com/orgs/trufflesuite/discussions/5178
Originally posted by pbirbarah June 5, 2022
this is my first contract and I am using truffle with ganache for testing and I am facing some issues:
The contract is supposed to just send payment back to the person who contacts it.
How do I do that? I have the contract deployed, created an instance const my_contract = await Test_Payment.deployed()
when I try my_contract.test I get an error that this is not a function I am confused how to proceed.
The text was updated successfully, but these errors were encountered: