Skip to content

Commit

Permalink
Merge pull request #291 from hyperledger-labs/fix-contract-name
Browse files Browse the repository at this point in the history
Rename to IBCChannelUpgradeConfirmOpenTimeoutCancel

Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele authored Jul 30, 2024
2 parents cf2cbf5 + 119273e commit 3189415
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ IBCMockAppTest:testHandshakeBetweenDifferentPorts() (gas: 3339603)
IBCMockAppTest:testPacketRelay() (gas: 13935831)
IBCMockAppTest:testPacketTimeout() (gas: 4284259)
ICS24HostTest:testValidatePortIdentifier() (gas: 37060)
TestICS02:testCreateClient() (gas: 36638179)
TestICS02:testCreateClient() (gas: 36638191)
TestICS02:testHeightToUint128((uint64,uint64)) (runs: 256, μ: 887, ~: 887)
TestICS02:testInvalidCreateClient() (gas: 36535290)
TestICS02:testInvalidUpdateClient() (gas: 36534306)
TestICS02:testRegisterClient() (gas: 36189972)
TestICS02:testRegisterClientDuplicatedClientType() (gas: 36175281)
TestICS02:testRegisterClientInvalidClientType() (gas: 36204787)
TestICS02:testUpdateClient() (gas: 36702506)
TestICS02:testInvalidCreateClient() (gas: 36535302)
TestICS02:testInvalidUpdateClient() (gas: 36534318)
TestICS02:testRegisterClient() (gas: 36189984)
TestICS02:testRegisterClientDuplicatedClientType() (gas: 36175293)
TestICS02:testRegisterClientInvalidClientType() (gas: 36204799)
TestICS02:testUpdateClient() (gas: 36702518)
TestICS03Handshake:testConnOpenAck() (gas: 1858230)
TestICS03Handshake:testConnOpenConfirm() (gas: 2054143)
TestICS03Handshake:testConnOpenInit() (gas: 1429838)
Expand Down
5 changes: 4 additions & 1 deletion contracts/core/04-channel/IBCChannelUpgrade.sol
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,10 @@ contract IBCChannelUpgradeInitTryAck is IBCChannelUpgradeBase, IIBCChannelUpgrad
}
}

contract IBCChannelUpgradeConfirmTimeoutCancel is IBCChannelUpgradeBase, IIBCChannelUpgradeConfirmOpenTimeoutCancel {
contract IBCChannelUpgradeConfirmOpenTimeoutCancel is
IBCChannelUpgradeBase,
IIBCChannelUpgradeConfirmOpenTimeoutCancel
{
/**
* @dev See {IIBCChannelUpgrade-channelUpgradeConfirm}
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/foundry/src/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {IBCChannelPacketSendRecv} from "../../../contracts/core/04-channel/IBCCh
import {IBCChannelPacketTimeout} from "../../../contracts/core/04-channel/IBCChannelPacketTimeout.sol";
import {
IBCChannelUpgradeInitTryAck,
IBCChannelUpgradeConfirmTimeoutCancel
IBCChannelUpgradeConfirmOpenTimeoutCancel
} from "../../../contracts/core/04-channel/IBCChannelUpgrade.sol";
import {IIBCHandler} from "../../../contracts/core/25-handler/IIBCHandler.sol";
import {OwnableIBCHandler} from "../../../contracts/core/25-handler/OwnableIBCHandler.sol";
Expand Down Expand Up @@ -39,7 +39,7 @@ contract DeployScript is Script {
new IBCChannelPacketSendRecv(),
new IBCChannelPacketTimeout(),
new IBCChannelUpgradeInitTryAck(),
new IBCChannelUpgradeConfirmTimeoutCancel()
new IBCChannelUpgradeConfirmOpenTimeoutCancel()
)
);

Expand Down
2 changes: 1 addition & 1 deletion tests/foundry/src/helpers/IBCTestHelper.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ abstract contract IBCTestHelper is Test {
new IBCChannelPacketSendRecv(),
new IBCChannelPacketTimeout(),
new IBCChannelUpgradeInitTryAck(),
new IBCChannelUpgradeConfirmTimeoutCancel()
new IBCChannelUpgradeConfirmOpenTimeoutCancel()
);
}

Expand Down

0 comments on commit 3189415

Please sign in to comment.