Skip to content

Instantly share code, notes, and snippets.

View SatoshiTwentyOne's full-sized avatar

SatoshiTwentyOne

  • Finland
View GitHub Profile
module.exports = {
makeApproveCheck: function (inst, firstAccount, secondAccount, value) {
var ebtc;
return inst.deployed().then(function (instance) {
ebtc = instance;
return ebtc.approve(secondAccount, value, {from: firstAccount});
}).then(function () {
return ebtc.allowance.call(firstAccount, secondAccount);
}).then(function (balance) {