How to transfer on truffle develop

Solution 1:

It is not working because your deposit() function is not waiting for any params. You need to send some value with your transaction in order for it to work. Try this:

mt.deposit({value: 'the amount of ether you want to send'});