Test contract already deployed

I have a question, I want to test a deposit contract of a token, you already know that the Address of the token is passed as a constructor

And then I need to Test the contract that is already Deployed, for example to know if the balance in tokens is correctly added to the contract

Do you know how it can be done? Or is there a way to Deploy with the constructor and test at the same time

1 Like

Hi @franco_villa_santana,

Can you give some more details about what you are trying to do?

Are you deploying a deposit contract from a factory and then transferring tokens to the address of the deposit contract? When you say test, are you wanting to check in your Solidity code or are you talking about a unit test?

Unit Test I was referring to, but I already found a solution, instead of using Contract.deployed (), use Contract.at (contractAddress)

1 Like