You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Originally posted by pbirbarah June 2, 2022
I have downloaded truffle extension in visual studio and also downloaded ganache. I was able to deploy a contract on ganache (used truffle migrate successfully) but when I use the truffle console to get info about the contract like const bla = await contract.deployed() I get undefined, can't figure out why
The text was updated successfully, but these errors were encountered:
Well, note that const bla = await contract.deployed() will return undefined due to the fact that it's a statement, rather than expression, but that doesn't mean that bla itself is undefined; if you enter bla afterward, you should see it defined. Can you confirm whether it works?
(Also, if you simply write bla = await contract.deployed(), then since that's an expression, it ought to return the value assigned to bla; unfortunately, due to issue #3349, currently this will also display undefined. However, even here, the assignment does still occur, and if you enter bla afterward, you should see it defined. Again, can you confirm whether this works?)
Discussed in https://github.com/orgs/trufflesuite/discussions/5167
Originally posted by pbirbarah June 2, 2022
I have downloaded truffle extension in visual studio and also downloaded ganache. I was able to deploy a contract on ganache (used truffle migrate successfully) but when I use the truffle console to get info about the contract like const bla = await contract.deployed() I get undefined, can't figure out why
The text was updated successfully, but these errors were encountered: