fix tests
This commit is contained in:
@ -1,12 +1,9 @@
|
|||||||
module.exports = function(deployer) {
|
module.exports = function(deployer) {
|
||||||
deployer.deploy(PullPaymentBid);
|
|
||||||
deployer.deploy(BadArrayUse);
|
|
||||||
deployer.deploy(ProofOfExistence);
|
|
||||||
deployer.deploy(Ownable);
|
deployer.deploy(Ownable);
|
||||||
deployer.deploy(Claimable);
|
deployer.deploy(Claimable);
|
||||||
deployer.deploy(LimitBalance);
|
deployer.deploy(LimitBalance);
|
||||||
if(deployer.network == 'test'){
|
if(deployer.network == 'test'){
|
||||||
deployer.deploy(SecureTargetBounty);
|
deployer.deploy(SecureTargetBounty);
|
||||||
deployer.deploy(InsecureTargetBounty);
|
deployer.deploy(InsecureTargetBounty);
|
||||||
};
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -7,7 +7,7 @@ contract('Killable', function(accounts) {
|
|||||||
transactionReceiptAsync = function(txnHash, resolve, reject) {
|
transactionReceiptAsync = function(txnHash, resolve, reject) {
|
||||||
try {
|
try {
|
||||||
var receipt = web3.eth.getTransactionReceipt(txnHash);
|
var receipt = web3.eth.getTransactionReceipt(txnHash);
|
||||||
if (receipt == null) {
|
if (receipt === null) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
transactionReceiptAsync(txnHash, resolve, reject);
|
transactionReceiptAsync(txnHash, resolve, reject);
|
||||||
}, interval);
|
}, interval);
|
||||||
@ -37,9 +37,6 @@ contract('Killable', function(accounts) {
|
|||||||
web3.eth.sendTransaction({from: web3.eth.coinbase, to: accounts[0], value: web3.toWei('50','ether')}, function(err, result) {
|
web3.eth.sendTransaction({from: web3.eth.coinbase, to: accounts[0], value: web3.toWei('50','ether')}, function(err, result) {
|
||||||
if(err)
|
if(err)
|
||||||
console.log("ERROR:" + err);
|
console.log("ERROR:" + err);
|
||||||
else {
|
|
||||||
console.log(result);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
killable = await Killable.new({from: accounts[0], value: web3.toWei('10','ether')});
|
killable = await Killable.new({from: accounts[0], value: web3.toWei('10','ether')});
|
||||||
|
|||||||
Reference in New Issue
Block a user