aboutsummaryrefslogtreecommitdiffstats
path: root/test/contracts/FixedFeeRegistrar.cpp
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-11 19:23:33 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-12 18:54:42 +0800
commit8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2 (patch)
tree994b5301030fad5985f1a347a1603875aaca523b /test/contracts/FixedFeeRegistrar.cpp
parenta1f54f4e40811e526541f3a54f6a19dd42c8e688 (diff)
downloaddexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.gz
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.zst
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.zip
Update test wrt requiring storage locations.
Diffstat (limited to 'test/contracts/FixedFeeRegistrar.cpp')
-rw-r--r--test/contracts/FixedFeeRegistrar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/contracts/FixedFeeRegistrar.cpp b/test/contracts/FixedFeeRegistrar.cpp
index 87f801b0..aebdb053 100644
--- a/test/contracts/FixedFeeRegistrar.cpp
+++ b/test/contracts/FixedFeeRegistrar.cpp
@@ -75,7 +75,7 @@ contract FixedFeeRegistrar is Registrar {
modifier onlyrecordowner(string _name) { if (m_record(_name).owner == msg.sender) _; }
function reserve(string _name) payable {
- Record rec = m_record(_name);
+ Record storage rec = m_record(_name);
if (rec.owner == 0x0000000000000000000000000000000000000000 && msg.value >= c_fee) {
rec.owner = msg.sender;
emit Changed(_name);
@@ -105,7 +105,7 @@ contract FixedFeeRegistrar is Registrar {
}
function record(string _name) view returns (address o_addr, address o_subRegistrar, bytes32 o_content, address o_owner) {
- Record rec = m_record(_name);
+ Record storage rec = m_record(_name);
o_addr = rec.addr;
o_subRegistrar = rec.subRegistrar;
o_content = rec.content;