it("Test", function () {
let price = '';
return Contract.deployed().then(async function (instance) {
await instance.hoge(
a,
b,
{ value: xxxxxxx,
from: accounts[0] })
.then(function(result){
price = web3.fromWei(result.logs[0].args.Price.toNumber(), 'ether');
console.log(price);
assert.equal(price, targetPrice, "Wrong Price");
});
});
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00