@@ -25,7 +25,7 @@ contract('Bounty', function (accounts) {
25
25
let owner = accounts [ 0 ] ;
26
26
let reward = web3 . toWei ( 1 , 'ether' ) ;
27
27
let bounty = await SecureTargetBounty . new ( ) ;
28
- sendReward ( owner , bounty . address , reward ) ;
28
+ await sendReward ( owner , bounty . address , reward ) ;
29
29
30
30
const balance = await toPromise ( web3 . eth . getBalance ) ( bounty . address ) ;
31
31
assert . equal ( reward , balance . toNumber ( ) ) ;
@@ -35,7 +35,7 @@ contract('Bounty', function (accounts) {
35
35
let owner = accounts [ 0 ] ;
36
36
let reward = web3 . toWei ( 1 , 'ether' ) ;
37
37
let bounty = await SecureTargetBounty . new ( ) ;
38
- sendReward ( owner , bounty . address , reward ) ;
38
+ await sendReward ( owner , bounty . address , reward ) ;
39
39
40
40
const balance = await toPromise ( web3 . eth . getBalance ) ( bounty . address ) ;
41
41
assert . equal ( reward , balance . toNumber ( ) ) ;
@@ -58,7 +58,7 @@ contract('Bounty', function (accounts) {
58
58
if ( err ) { throw err ; }
59
59
60
60
var targetAddress = result . args . createdAddress ;
61
- sendReward ( owner , bounty . address , reward ) ;
61
+ await sendReward ( owner , bounty . address , reward ) ;
62
62
63
63
const balance = await toPromise ( web3 . eth . getBalance ) ( bounty . address ) ;
64
64
assert . equal ( reward , balance . toNumber ( ) ) ;
@@ -95,7 +95,7 @@ contract('Bounty', function (accounts) {
95
95
event . stopWatching ( ) ;
96
96
if ( err ) { throw err ; }
97
97
let targetAddress = result . args . createdAddress ;
98
- sendReward ( owner , bounty . address , reward ) ;
98
+ await sendReward ( owner , bounty . address , reward ) ;
99
99
100
100
const balance = await toPromise ( web3 . eth . getBalance ) ( bounty . address ) ;
101
101
assert . equal ( reward , balance . toNumber ( ) ) ;
0 commit comments