diff --git a/contracts/protocols/chainlink.sol b/contracts/protocols/chainlink.sol index 90c4b04..0e3c7f3 100644 --- a/contracts/protocols/chainlink.sol +++ b/contracts/protocols/chainlink.sol @@ -51,7 +51,7 @@ contract Basic { require(chainlinkFeed != address(0), "chainlinkFeed-not-vaild"); require(chainLinkMapping[tokenAddr] == address(0), "chainlinkFeed-already-added"); - chainLinkMapping[tokenAddr] == chainlinkFeed; + chainLinkMapping[tokenAddr] = chainlinkFeed; emit LogAddChainLinkMapping(tokenAddr, chainlinkFeed); }