From 584c8326b89905629132dfccc7c165f0f47f2824 Mon Sep 17 00:00:00 2001 From: Antonina Norair Date: Fri, 23 Mar 2018 13:22:40 -0700 Subject: [PATCH] Replace constant with pure modifier --- contracts/HashedTimelock.sol | 2 +- contracts/HashedTimelockERC20.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/HashedTimelock.sol b/contracts/HashedTimelock.sol index 97ad747..eb13142 100644 --- a/contracts/HashedTimelock.sol +++ b/contracts/HashedTimelock.sol @@ -211,7 +211,7 @@ contract HashedTimelock { * @return the hashed secret. */ function hashSecret(bytes32 secret) - constant + pure public returns(bytes32 hashed) { diff --git a/contracts/HashedTimelockERC20.sol b/contracts/HashedTimelockERC20.sol index ad16228..0f7e8c4 100644 --- a/contracts/HashedTimelockERC20.sol +++ b/contracts/HashedTimelockERC20.sol @@ -250,7 +250,7 @@ contract HashedTimelockERC20 { * @return the hashed secret. */ function hashSecret(bytes32 secret) - constant + pure public returns(bytes32 hashed) {