Add pushFundsFromKeep for fallback tests
re-introduce pushFundsFromKeep to test fallback.
This functions sends value to the Deposit contract's fallback.
Use this function to ensure the Deposit contract does not revert when
receiving value from another contract directly.
@@ -86,4 +86,9 @@ contract ECDSAKeepStub is IBondedECDSAKeep {
function burnContractBalance() public {
address(0).transfer(address(this).balance);
}
+
+ function pushFundsFromKeep(address payable _depositAddress) public payable {
+ require(msg.value > 0, "value must be greater than 0");
+ _depositAddress.transfer(msg.value);
+ }
}
