DToken.deployed().then(function(instance){ token = instance; })

This code I saw in truffle test. Can someone please tell what does this "instance" parameter refer to?


A truffle-contract object, which represents the DToken contract deployed on the network.

This object exposes all the public and external functions of the DToken contract.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.