From cff04ba0331d81fec4ddc7a40e82ef7e037e9fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kru=CC=88ger?= Date: Mon, 8 Jan 2018 11:42:33 +0100 Subject: [PATCH] bridge.sol: messageValueSufficientToCoverRelay -> isMessageValueSufficientToCoverRelay --- contracts/bridge.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/bridge.sol b/contracts/bridge.sol index 00c0a5a..4e2b117 100644 --- a/contracts/bridge.sol +++ b/contracts/bridge.sol @@ -172,7 +172,7 @@ contract HomeBridge { /// to be called by authorities to check /// whether they withdraw message should be relayed or whether it /// is too low to cover the cost of calling withdraw and can be ignored - function messageValueSufficientToCoverRelay(bytes message) public view returns (bool) { + function isMessageValueSufficientToCoverRelay(bytes message) public view returns (bool) { return getValueFromMessage(message) > getWithdrawRelayCost(); } @@ -204,7 +204,7 @@ contract HomeBridge { // this fails if `value` is not even enough to cover the relay cost. // Authorities simply IGNORE withdraws where `value` can’t relay cost. // Think of it as `value` getting burned entirely on the relay with no value left to pay out the recipient. - require(messageValueSufficientToCoverRelay(message)); + require(isMessageValueSufficientToCoverRelay(message)); uint estimatedWeiCostOfWithdraw = getWithdrawRelayCost();