Skip to content

Commit

Permalink
ICS5: fix releasePort signature (cosmos#885)
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>

Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele authored and dshiell committed Dec 16, 2022
1 parent a2a99eb commit f45fa01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/core/ics-005-port-allocation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ The IBC handler MUST implement the `releasePort` function, which allows a module
> Warning: releasing a port will allow other modules to bind to that port and possibly intercept incoming channel opening handshakes. Modules should release ports only when doing so is safe.

```typescript
function releasePort(capability: CapabilityKey) {
function releasePort(id: Identifier, capability: CapabilityKey) {
abortTransactionUnless(authenticateCapability(portPath(id), capability))
releaseCapability(capability)
}
Expand Down

0 comments on commit f45fa01

Please sign in to comment.