Skip to content

Commit 738ce6c

Browse files
authored
Merge pull request #297 from hyperledger-labs/update-appbase-inheritance
update AppBase inheritance Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
2 parents cd49bc0 + 8d15fcb commit 738ce6c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

contracts/apps/commons/IBCAppBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {Packet} from "../../core/04-channel/IIBCChannel.sol";
77
import {IIBCModule} from "../../core/26-router/IIBCModule.sol";
88
import {IIBCModuleErrors} from "../../core/26-router/IIBCModuleErrors.sol";
99

10-
abstract contract AppBase is IERC165, Context, IIBCModuleErrors {
10+
abstract contract AppBase is Context, IERC165, IIBCModuleErrors {
1111
/**
1212
* @dev Throws if called by any account other than the IBC contract.
1313
*/

contracts/core/04-channel/IBCChannelPacketSendRecv.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ contract IBCChannelPacketSendRecv is
110110
ChannelStorage storage channelStorage =
111111
getChannelStorage()[msg_.packet.destinationPort][msg_.packet.destinationChannel];
112112
Channel.Data storage channel = channelStorage.channel;
113-
if (channel.state == Channel.State.STATE_OPEN) {}
114-
else if (channel.state == Channel.State.STATE_FLUSHING || channel.state == Channel.State.STATE_FLUSHCOMPLETE) {
113+
if (channel.state == Channel.State.STATE_OPEN) {} else if (
114+
channel.state == Channel.State.STATE_FLUSHING || channel.state == Channel.State.STATE_FLUSHCOMPLETE
115+
) {
115116
RecvStartSequence storage rseq = channelStorage.recvStartSequence;
116117
// prevSequence=0 means the channel is not in the process of being upgraded or counterparty has not been upgraded yet
117118
if (rseq.prevSequence != 0) {

0 commit comments

Comments
 (0)