Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions evm/contracts/clients/LoopbackClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,7 @@ contract LoopbackClient is
uint32 clientId,
bytes calldata clientMessageBytes,
address
)
external
override
onlyIBC
whenNotPaused
returns (ConsensusStateUpdate memory)
{
) external override whenNotPaused returns (ConsensusStateUpdate memory) {
Header calldata header;
assembly {
header := clientMessageBytes.offset
Expand Down Expand Up @@ -261,7 +255,7 @@ contract LoopbackClient is
uint32 clientId,
bytes calldata clientMessageBytes,
address
) external override onlyIBC whenNotPaused {
) external override {
revert LoopbackClientLib.ErrUnsupported();
}

Expand Down
1 change: 1 addition & 0 deletions evm/evm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,7 @@ _: {
eudrop = "EUDrop";
quick-withdrawal = "QuickWithdrawal";
z-asset = "ZAsset";
loopback-client = "LoopbackClient";
}
)
))
Expand Down
19 changes: 19 additions & 0 deletions evm/scripts/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2711,3 +2711,22 @@ contract SafeUpgradeZAsset is BaseUpgrade {
upgradeCall = new bytes(0);
}
}

contract SafeUpgradeLoopbackClient is BaseUpgrade {
constructor() BaseUpgrade(true, false) {}

function upgradeParameters()
internal
override
returns (
address targetContract,
address newImplementation,
bytes memory upgradeCall
)
{
targetContract = getDeployed(LIGHT_CLIENT_SALT.LOOPBACK);
address handler = getDeployed(IBC_SALT.BASED);
newImplementation = address(new LoopbackClient(handler));
upgradeCall = new bytes(0);
}
}