aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-08-21 08:37:23 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-08-25 08:30:56 +0800
commit044415e23d3a079e6301d8fb838da60456794c4f (patch)
treee726a03a159357ffa82e000f5bf0613253ede099
parent74ce893f520db6ae4617432975b5c9321ff5b89b (diff)
downloaddexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.tar
dexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.tar.gz
dexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.tar.bz2
dexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.tar.lz
dexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.tar.xz
dexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.tar.zst
dexon-sol-tools-044415e23d3a079e6301d8fb838da60456794c4f.zip
Remove redundant sload from getCurrentContextAddress
-rw-r--r--packages/contracts/src/2.0.0/protocol/Exchange/MixinTransactions.sol3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/MixinTransactions.sol b/packages/contracts/src/2.0.0/protocol/Exchange/MixinTransactions.sol
index 821d30279..4a59b6c0f 100644
--- a/packages/contracts/src/2.0.0/protocol/Exchange/MixinTransactions.sol
+++ b/packages/contracts/src/2.0.0/protocol/Exchange/MixinTransactions.sol
@@ -155,7 +155,8 @@ contract MixinTransactions is
view
returns (address)
{
- address contextAddress = currentContextAddress == address(0) ? msg.sender : currentContextAddress;
+ address currentContextAddress_ = currentContextAddress;
+ address contextAddress = currentContextAddress_ == address(0) ? msg.sender : currentContextAddress_;
return contextAddress;
}
}