You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.equal((awaitgetBalance(target.address)).valueOf(),0,'Target balance should be 0')
51
+
assert.equal((awaitgetBalance(vault.address)).valueOf(),initialVaultBalance.plus(initialBalance).plus(amount),'Vault balance should include recovered amount')
52
+
53
+
assert.equal(getEvent(recoverReceipt,'RecoverToVault','vault'),vault.address,'RecoverToVault event should have correct vault')
54
+
assert.equal(getEvent(recoverReceipt,'RecoverToVault','token'),ETH,'RecoverToVault event should have correct token')
55
+
assert.equal(getEvent(recoverReceipt,'RecoverToVault','amount'),amount,'RecoverToVault event should have correct amount')
56
+
assertEvent(recoverReceipt,'RecoverToVault',1)
51
57
}
52
58
}
53
59
@@ -57,18 +63,23 @@ contract('Recovery to vault', accounts => {
assert.equal((awaittoken.balanceOf(target.address)).valueOf(),0,'Target balance should be 0')
77
+
assert.equal((awaittoken.balanceOf(vault.address)).valueOf(),initialVaultBalance.plus(initialBalance).plus(amount),'Vault balance should include recovered amount')
78
+
79
+
assert.equal(getEvent(recoverReceipt,'RecoverToVault','vault'),vault.address,'RecoverToVault event should have correct vault')
80
+
assert.equal(getEvent(recoverReceipt,'RecoverToVault','token'),token.address,'RecoverToVault event should have correct token')
81
+
assert.equal(getEvent(recoverReceipt,'RecoverToVault','amount'),amount,'RecoverToVault event should have correct amount')
82
+
assertEvent(recoverReceipt,'RecoverToVault',1)
72
83
}
73
84
}
74
85
@@ -78,16 +89,16 @@ contract('Recovery to vault', accounts => {
0 commit comments