     @checkTransactionEnd()
 
   setInportMetadata: (publicPort, metadata) ->
+    publicPort = publicPort.toLowerCase()
     return unless @inports[publicPort]
 
     @checkTransactionStart()

    @checkTransactionEnd()

  renameInport: (oldPort, newPort) ->
    return unless @inports[oldPort]

    @checkTransactionStart()

  #
  # Remove an IIP will emit a `removeInitial` event.
  removeInitial: (node, port) ->
    port = port.toLowerCase()
    @checkTransactionStart()

    toRemove = []
