diff --git a/test/ChainListExceptions.js b/test/ChainListExceptions.js index 2c0f528..828dafc 100644 --- a/test/ChainListExceptions.js +++ b/test/ChainListExceptions.js @@ -50,7 +50,7 @@ contract('ChainList', function(accounts) { }); }).then(function(receipt) { return chainListInstance.buyArticle(2, { - from: seller, + from: buyer, value: web3.toWei(articlePrice, "ether") }); }).then(assert.fail) diff --git a/test/ChainListHappyPath.js b/test/ChainListHappyPath.js index 13d3d97..6e84f16 100644 --- a/test/ChainListHappyPath.js +++ b/test/ChainListHappyPath.js @@ -87,7 +87,7 @@ contract('ChainList', function(accounts) { articleId = data[1].toNumber(); assert.equal(articleId, 2, "article id must be 2"); - return chainListInstance.articles.call(articleId); + return chainListInstance.articles(articleId); }).then(function(data) { assert.equal(data[0].toNumber(), 2, "article id must be 2"); assert.equal(data[1], seller, "seller must be " + seller);