Timeline for Calling Smart Contract function returns tx object instead of expected return value in Truffle test
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2019 at 19:32 | comment | added | Luiz Soares |
Well, depends of what you would like to test. In this case, if I were you, I would just make idCounter public (or create a view function to get its value) and then check its value and comparing to what you expect. Something like this: contract.idCounter({from: giftGiverAddress})
|
|
May 23, 2019 at 13:54 | comment | added | TheLukeMcCarthy | That seems like more code than I was hoping to write for a simple test :( | |
May 23, 2019 at 13:50 | history | answered | Luiz Soares | CC BY-SA 4.0 |