diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-08-21 08:37:23 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-08-25 08:30:56 +0800 |
commit | 044415e23d3a079e6301d8fb838da60456794c4f (patch) | |
tree | e726a03a159357ffa82e000f5bf0613253ede099 | |
parent | 74ce893f520db6ae4617432975b5c9321ff5b89b (diff) | |
download | dexon-0x-contracts-044415e23d3a079e6301d8fb838da60456794c4f.tar.gz dexon-0x-contracts-044415e23d3a079e6301d8fb838da60456794c4f.tar.zst dexon-0x-contracts-044415e23d3a079e6301d8fb838da60456794c4f.zip |
Remove redundant sload from getCurrentContextAddress
-rw-r--r-- | packages/contracts/src/2.0.0/protocol/Exchange/MixinTransactions.sol | 3 |
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; } } |