Skip to content

Commit

Permalink
fix(ucs01): wrong slot used when computing channel balance
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Sep 13, 2023
1 parent 9098741 commit 9a8fb3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm/contracts/apps/ucs/01-relay/Relay.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ contract UCS01Relay is IBCAppBase {
address token,
uint256 amount
) internal {
inFlight[portId][channelId][token] = outstanding[portId][channelId][
inFlight[portId][channelId][token] = inFlight[portId][channelId][
token
].add(amount);
}
Expand All @@ -172,7 +172,7 @@ contract UCS01Relay is IBCAppBase {
address token,
uint256 amount
) internal {
inFlight[portId][channelId][token] = outstanding[portId][channelId][
inFlight[portId][channelId][token] = inFlight[portId][channelId][
token
].sub(amount);
}
Expand Down

0 comments on commit 9a8fb3e

Please sign in to comment.