Skip to content

Commit

Permalink
refactor(solidity): rename _channelIBC to _memo for addBridgeToken (#948
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zakir-code authored Jan 23, 2025
1 parent a90006f commit e72fe47
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 29 deletions.
28 changes: 14 additions & 14 deletions contract/ifx_bridge_logic.sol.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion solidity/contracts/bridge/FxBridgeBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface FxBridgeBase {
string _symbol,
uint8 _decimals,
uint256 _eventNonce,
bytes32 _channelIBC
bytes32 _memo
);
event OracleSetUpdatedEvent(
uint256 indexed _newOracleSetNonce,
Expand Down
4 changes: 2 additions & 2 deletions solidity/contracts/bridge/FxBridgeLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ contract FxBridgeLogic is

function addBridgeToken(
address _tokenAddr,
bytes32 _channelIBC,
bytes32 _memo,
bool _isOriginated
) public onlyOwner returns (bool) {
require(_tokenAddr != address(0), "Invalid token address.");
Expand All @@ -110,7 +110,7 @@ contract FxBridgeLogic is
IERC20MetadataUpgradeable(_tokenAddr).symbol(),
IERC20MetadataUpgradeable(_tokenAddr).decimals(),
state_lastEventNonce,
_channelIBC
_memo
);
return true;
}
Expand Down
13 changes: 2 additions & 11 deletions solidity/contracts/bridge/FxBridgeLogicETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ contract FxBridgeLogicETH is
mapping(uint256 => bool) public state_lastBridgeCallNonces;
/* solhint-enable var-name-mixedcase */

/* FxOriginatedTokenEvent Deprecated: after fxcore upgrade v3 */
event FxOriginatedTokenEvent(
address indexed _tokenContract,
string _name,
string _symbol,
uint8 _decimals,
uint256 _eventNonce
);

/* =============== INIT =============== */

function init(
Expand Down Expand Up @@ -113,7 +104,7 @@ contract FxBridgeLogicETH is

function addBridgeToken(
address _tokenAddr,
bytes32 _channelIBC,
bytes32 _memo,
bool _isOriginated
) public onlyOwner returns (bool) {
require(_tokenAddr != address(0), "Invalid token address.");
Expand All @@ -130,7 +121,7 @@ contract FxBridgeLogicETH is
IERC20MetadataUpgradeable(_tokenAddr).symbol(),
IERC20MetadataUpgradeable(_tokenAddr).decimals(),
state_lastEventNonce,
_channelIBC
_memo
);
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/interfaces/IFxBridgeLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface IFxBridgeLogic is IBridgeCall, FxBridgeBase {

function addBridgeToken(
address _tokenAddr,
bytes32 _channelIBC,
bytes32 _memo,
bool _isOriginated
) external returns (bool);

Expand Down

0 comments on commit e72fe47

Please sign in to comment.