tornado-nova/contracts/Mocks/MockAMB.sol

27 lines
749 B
Solidity
Raw Normal View History

2021-09-29 21:39:30 +02:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import { IAMB } from "../CrossChainUpgradeableProxy.sol";
contract MockAMB is IAMB {
address public xDomainMessageSender;
bytes32 public xDomainMessageChainId;
2021-09-29 21:39:30 +02:00
constructor(address _xDomainMessageSender, uint256 _xDomainMessageChainId) {
2021-09-29 21:39:30 +02:00
xDomainMessageSender = _xDomainMessageSender;
xDomainMessageChainId = bytes32(uint256(_xDomainMessageChainId));
2021-09-29 21:39:30 +02:00
}
function setMessageSender(address _sender) external {
xDomainMessageSender = _sender;
}
function messageSender() external view override returns (address) {
return xDomainMessageSender;
}
function messageSourceChainId() external view override returns (bytes32) {
return xDomainMessageChainId;
}
2021-09-29 21:39:30 +02:00
}