added a test helper with common constants (#1400)
* signing prefix added * Minor improvement * Tests changed * Successfully tested * Minor improvements * Minor improvements * Revert "Dangling commas are now required. (#1359)" This reverts commita6889776f4. * updates * fixes #1206 (cherry picked from commit58a42443df)
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
const { ethGetBalance, ethSendTransaction } = require('../helpers/web3');
|
||||
const { ether } = require('../helpers/ether');
|
||||
const { ZERO_ADDRESS } = require('./../helpers/constants');
|
||||
|
||||
const BigNumber = web3.BigNumber;
|
||||
|
||||
@ -11,8 +13,7 @@ const { EVMRevert } = require('../helpers/EVMRevert.js');
|
||||
const SplitPayment = artifacts.require('SplitPayment');
|
||||
|
||||
contract('SplitPayment', function ([_, owner, payee1, payee2, payee3, nonpayee1, payer1]) {
|
||||
const amount = web3.toWei(1.0, 'ether');
|
||||
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
||||
const amount = ether(1.0);
|
||||
|
||||
it('rejects an empty set of payees', async function () {
|
||||
await expectThrow(SplitPayment.new([], []), EVMRevert);
|
||||
|
||||
Reference in New Issue
Block a user