Lets say I use web3 to call foo.bar() like so:
var foo = await Foo.deployed();
var result = await foo.bar();
If I console.log(result)
I just see something that says [Object object]
How can I get the transaction hash of the function call? I'd like to be able to keep track of its status. e.g. failed, pending etc.
Thanks!
console.dir(result);
instead